Re: start new project

109 views
Skip to first unread message

ahmed.nasser

unread,
Jul 13, 2012, 2:19:36 AM7/13/12
to mandang...@googlegroups.com
You can download it and add it to your project https://github.com/mandango/mondator

Александр Ерин <larr...@gmail.com> wrote:
Hello. I have a questions about start working with Mandango for configuration example i have current code

'Mandango\Mondator' => $mandangoDir.'/vendor/mondator/src',
'Mandango' => $mandangoDir.'/src/',
'Model' => dirname($modelDir),

What is /vendor/mondator/src path? I do not have this directories.
Many Thanks

Александр Ерин

unread,
Jul 14, 2012, 3:38:58 AM7/14/12
to mandang...@googlegroups.com, ahmed.nasser
Hello.
Yes I have /vendor/mondator/src but i have a problem where i creating object from  MetadataFactory class. In documentation
$metadataFactory = new MetadataFactory();

but this is abstract class and php can not create object from abstract class. I think i need create new class and extend MetadataFactory class.
Where I can see project confix example?
What is Model dir? Do I need create model before usage Mandango?
Many thanks.


пятница, 13 июля 2012 г., 9:19:36 UTC+3 пользователь Ahmed Nasser написал:

ahmed.nasser

unread,
Jul 14, 2012, 4:35:39 AM7/14/12
to mandang...@googlegroups.com
You first generate your model classes using mondator. Then it will generate a concrete metadatafactory class for you. This is the one you should be able to instantiate not the abstract one.

Thanks,
Ahmed.


Send from Samsung Mobile

Александр Ерин

unread,
Jul 17, 2012, 12:21:37 PM7/17/12
to mandang...@googlegroups.com, ahmed.nasser
Hi. I am generating model with mondator. But i get error message. Systems does not find Twig_Environment class. I can not find this class in mondator library. Where i can get this class?
Can you gilve me skype for faster contacts ?

King Regards
Alex

суббота, 14 июля 2012 г., 11:35:39 UTC+3 пользователь Ahmed Nasser написал:

ahmed.nasser

unread,
Jul 17, 2012, 12:32:16 PM7/17/12
to mandang...@googlegroups.com
Just download Twig library and add it to your project and you are good to go

Александр Ерин

unread,
Jul 18, 2012, 9:17:18 AM7/18/12
to mandang...@googlegroups.com, ahmed.nasser
Where am i need put Twig template library? In Mandango/Twig ?
I put Twig into this folder, but i getting error messages. Am I need add this path to autoload?

вторник, 17 июля 2012 г., 19:32:16 UTC+3 пользователь Ahmed Nasser написал:

Александр Ерин

unread,
Jul 19, 2012, 6:50:03 AM7/19/12
to mandang...@googlegroups.com, ahmed.nasser
Thanks. I run this library. I am very happy.


пятница, 13 июля 2012 г., 9:19:36 UTC+3 пользователь Ahmed Nasser написал:
You can download it and add it to your project https://github.com/mandango/mondator

Александр Ерин

unread,
Jul 19, 2012, 7:40:59 AM7/19/12
to mandang...@googlegroups.com, ahmed.nasser
Hi. I have a question - How I can create queries like SELECT * FROM TABLE WHERE length(fields) > 10;
Thanks

пятница, 13 июля 2012 г., 9:19:36 UTC+3 пользователь Ahmed Nasser написал:
You can download it and add it to your project https://github.com/mandango/mondator

ahmed.nasser

unread,
Jul 19, 2012, 6:19:34 PM7/19/12
to larr...@gmail.com, mandang...@googlegroups.com
I believe this is a mongo question not a mandango question whose answer can be found at 



Send from Samsung Mobile

Александр Ерин <larr...@gmail.com> wrote:

ahmed.nasser

unread,
Jul 19, 2012, 6:21:54 PM7/19/12
to ahmed....@jidari.com, larr...@gmail.com, mandang...@googlegroups.com
Or do you mean you want to filter the documents based on the number of properties in the document?


Send from Samsung Mobile

Александр Ерин

unread,
Jul 20, 2012, 3:52:23 AM7/20/12
to mandang...@googlegroups.com, larr...@gmail.com, ahmed.nasser
Thanks.
I have question about javascript and Mandango. In mongo documentation i can use current code
db.myCollection.find("this.a > 3");
How i can use this code in Mandango?

пятница, 20 июля 2012 г., 1:19:34 UTC+3 пользователь Ahmed Nasser написал:
Reply all
Reply to author
Forward
0 new messages