Re: data filtering
It seems to be a classical ACL problem. See this : http://book.cakephp.org/view/465/Understanding-How-ACL-Works Understanding-How-ACL-Works Starting from this, you will have the opportunity to do fine restriction on your controller functions (or pages) -- View this message in context: http://cakephp.1045679.n5.nabble.com/data-filtering-tp4563439p4567611.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: I can't create AROS automatically and I don't know why
Ahahahahahah !!! I didn't saw it Well, did you tried your code without my adds ? Does it works without ? -- View this message in context: http://cakephp.1045679.n5.nabble.com/I-can-t-create-AROS-automatically-and-I-don-t-know-why-tp4541318p4541628.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: I can't create AROS automatically and I don't know why
I forgot to say, that you should first of all define the groups for your ACL. Having a user - group ACL management without any groups doesn't makes sense to me. Then, you have 2 possibilites : Define the default user group in php. Define the default user group directly in your SQL table. Like : group_id | group_name 1 | Adminstrators 2 | Managers 3 | Users 4 | Guests -- View this message in context: http://cakephp.1045679.n5.nabble.com/I-can-t-create-AROS-automatically-and-I-don-t-know-why-tp4541318p4541550.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: I can't create AROS automatically and I don't know why
True, replace it by return null ; Refresh the code page or click http://pastebin.com/Zvz79VDa here it should have changed ;) -- View this message in context: http://cakephp.1045679.n5.nabble.com/I-can-t-create-AROS-automatically-and-I-don-t-know-why-tp4541318p4541532.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: I can't create AROS automatically and I don't know why
Well, it might be possible that the problem comes from your models : Your Model for group return 'null' for the parent_node function, it should be the problem. An out of topic thing, which will cause a problem during a "User Edit", you didn't code an aftersave function allowing tables to be updated in case of edition. Take a look at this code http://pastebin.com/Zvz79VDa here , it will be better than more explanations. -- View this message in context: http://cakephp.1045679.n5.nabble.com/I-can-t-create-AROS-automatically-and-I-don-t-know-why-tp4541318p4541423.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Recent troubles with 'minYear' and 'maxYear'
Yes I have tried, but the problem remains the same. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Recent-troubles-with-minYear-and-maxYear-tp4502140p4514201.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Recent troubles with 'minYear' and 'maxYear'
Well no, the date did not changed on the server... /Off topic : Yes, true the use of Sanitize is not required./ -- View this message in context: http://cakephp.1045679.n5.nabble.com/Recent-troubles-with-minYear-and-maxYear-tp4502140p4513700.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Recent troubles with 'minYear' and 'maxYear'
No idea ? -- View this message in context: http://cakephp.1045679.n5.nabble.com/Recent-troubles-with-minYear-and-maxYear-tp4502140p4513633.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Recent troubles with 'minYear' and 'maxYear'
Hi everyone, >From the begining the 'minYear' and 'maxYear' in the code below worked pretty well. However since 1 week it begins to fail. Does anyone knows why the following code display from 1991 to 2031 where it has displayed from 1911 to 2011 before ? echo $form->inputs(array( 'legend' => __('Edit', true), /* ... */ Sanitize::html('birthday') => array('type' => 'date', array('minYear' => date('Y') - 100, 'maxYear' => date('Y'))) )); echo $form->end(__('Submit', true)); -- View this message in context: http://cakephp.1045679.n5.nabble.com/Recent-troubles-with-minYear-and-maxYear-tp4502140p4502140.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Thank you very much ;) -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502131.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Thank you very much. I will try it ! -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4502127.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Help with Complex SQL FIND/COUNT
You can simply use : $this->Shipment->query(" SELECT *, COUNT(`tank_id`) AS NumOccurrences FROM `shipments` LEFT JOIN `tanks` ON (`shipments`.`tank_id` = `tanks`.`id`) GROUP BY `tank_id` HAVING ( COUNT(`tank_id`) > 1 ) ;" ); -- View this message in context: http://cakephp.1045679.n5.nabble.com/Help-with-Complex-SQL-FIND-COUNT-tp4498224p4501735.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Extract() by key name
Do you mean, choosing the fields of your db table in your SQL query ? If yes, try $this->ModelName->find('list',array('fields'=>array('resposta1','resposta..','respostaN'), 'conditions' => array('...' => '...'))); -- View this message in context: http://cakephp.1045679.n5.nabble.com/Extract-by-key-name-tp4499589p4501719.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: App_controller function to obtain default.pot file ( i18n extract )
Well, we have different persons in charge of the translations. However, those persons don't know what is a terminal actually. Because we often add new functions and views in our website, we all also add new _('to be translated',true) tags in the code. We just want it to be easy, with a simple 'button' on the website, the persons who translate can have the last items that need to be translated without asking us every time. In this context, they feel free to translate the last version of the website, when they want. I asked this question because we use the http://book.cakephp.org/view/647/An-Automated-tool-for-creating-ACOs build_acl function, which was first a shell command. Might it be possible to run the i18n extract command in a background terminal? -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4501699.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: $form->dateTime using minYear/maxYear problem
Hi everyone, >From the begining the 'minYear' and 'maxYear' worked for me. However since 1 week it fails. Does anyone knows why the following code display from 1991 to 2031 where it has displayed from 1911 to 2011 before ? echo $form->inputs(array( 'legend' => __('Edit', true), /* ... */ Sanitize::html('birthday') => array('type' => 'date', array('minYear' => date('Y') - 100, 'maxYear' => date('Y'))) )); echo $form->end(__('Submit', true)); -- View this message in context: http://cakephp.1045679.n5.nabble.com/form-dateTime-using-minYear-maxYear-problem-tp1289847p4498586.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
App_controller function to obtain default.pot file ( i18n extract )
Hi everyone, I am a new user of the cakephp framework and I find it really amazing for those who have few knowledge of website construction. My colleagues and I are working on a project that has to be shown each month into different languages. Therefore, we have started to build a multilingual interface with cake i18n extract shell command. Thanks to this page : http://cakephp.1045679.n5.nabble.com/create-po-file-from-database-table-multilingual-l10n-I18n-td1328082.html create-po-file-from-database-table-multilingual-l10n-I18n , we have build a simple interface to facilitate the life of our translators. However, our website is changing month after month, with the need to translate the new __('text to be translated',true). Hence, we have to re-construct the default.pot file each time. My question : Is there an App_controller function that can do the shell command : cake i18n extract shell If not, does anyone have an idea of how should it be written ? Thanks in advance. -- View this message in context: http://cakephp.1045679.n5.nabble.com/App-controller-function-to-obtain-default-pot-file-i18n-extract-tp4495820p4495820.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php