Internationalization Localization in Cakephp switching languages

2015-08-05 Thread yusuf elhirar
Hello guys, I started to make a website in 3 different languages: French, English and Arabic. Therefore, I would like to know how to switch language and using a link in the view. I already extract PO file for French and configure the website for French (on the bootstrap file), but I want to

Re: Admin as a plugin

2013-01-01 Thread Yusuf Abdulla Shunan
You can use the admin section as a plugin, something like: https://github.com/Maldicore/Admin Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups

Re: Admin Section as plugin

2013-01-01 Thread Yusuf Abdulla Shunan
You can use the admin section as a plugin, something like: https://github.com/Maldicore/Admin Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP

Re: cakephp admin app

2013-01-01 Thread Yusuf Abdulla Shunan
You can use the admin section as a plugin, something like: https://github.com/Maldicore/Admin Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP

Re: How to add multiple rows in one time ?

2010-09-01 Thread Yusuf Widiyatmono
you can use saveAll $this-Eating-saveAll($data['Eating']); please read saveAll from the api. Yusuf Widiyatmono Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google

XML to Array

2010-08-26 Thread Yusuf Widiyatmono
hi there.. i have an xml file which was generated by me from an array by cakephp function xml-compose(true) ?xml version=1.0 encoding=UTF-8 ? category id=255 name=accomodation relation=5 concept id=249 name=hotel / concept id=277 name=inn / concept id=289 name=appartement / concept id=301

Re: Cakephp - Editing HABTM Models

2010-06-27 Thread Yusuf Widiyatmono
i'm using an extension by Brandon Praise; the extension's name is ExtendAssosiationsBehavior which is easy to use to edit, delete or add entry to HABTM related models. http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior hope helps... On Sun, Jun 27, 2010 at 5:49 PM, Rami

Re: Error 404

2009-02-23 Thread yusuf widi
have you activated the apache mod_rewrite? the directory for cake application also have to be AllowOveride to All. On Tue, Feb 24, 2009 at 6:51 AM, jc_mich juan.mich...@paasel.com wrote: Hi I created an application according to MVC rules, my .htaccess files look like the specifications in

Re: Top 10 Framework

2009-02-02 Thread yusuf widi
for the comfort in developing while Yii seems a little bit faster when the coding work is done. On 2 Feb., 01:11, yusuf widi wmo...@gmail.com wrote: Hi guyz... i got this somewhere on the net... http://www.phpframeworks.com/top-10-php-frameworks/ Why they put cake

Top 10 Framework

2009-02-01 Thread yusuf widi
Hi guyz... i got this somewhere on the net... http://www.phpframeworks.com/top-10-php-frameworks/ Why they put cake php on the fifth place? i dont think we were worse than those framework... :) does anyone here have already done some research with those framework's which is have higher place

Re: XAMPP for linux

2009-01-29 Thread yusuf widi
xampp for linux can be find on apachefriend.com but you know that ubuntu cd have already contains php, apache and mysql? On Thu, Jan 29, 2009 at 8:44 PM, leo ponton@gmail.com wrote: try the xampp or ubuntu websites On Jan 29, 12:18 pm, Sergi Pasoev s.pas...@gmail.com wrote: Hi!

Re: HABTM on a HABTM

2009-01-29 Thread yusuf widi
?php class Area extends AppModel{ var $name = 'Area'; var $belongsTo = array( 'Parent' = array( 'className' = 'Area', 'foreignKey' = 'parent_id', 'dependent' = true ) ); ? this stuff works well with me... On Thu, Jan 29,

Re: CakePHP Model Advice

2009-01-28 Thread yusuf widi
no, it is ok if your ingredient model is empty... try to give recursive parameter with '2' when you use find method. by default recursive parameter is null. read more about recursive is on the api.cakephp.org http://api.cakephp.org/class/model#method-Modelfind On Thu, Jan 29, 2009 at 4:46 AM,

Re: How to submit form elements that are disabled?

2009-01-22 Thread Yusuf Widiyatmono
If the value of disabled form element could changed dynamically (maybe you have some lil process on your view), maybe you need some little javascript script here... script function test(){ document.ItemEdit.getElementById('ItemQuantytyHid').value =

Re: Closing $ajax-form()

2009-01-22 Thread Yusuf Widiyatmono
i use $form-end(); and it does submit trough ajax updater successfully. see the code which is generated by ajax-form(); you will figure out that it just a normal new Ajax.Updater(). sometimes i meet my limitation when use ajax on cake, so i just write normal html and javascript on the view

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
i did and it still shows me same errors... From: brian bally.z...@gmail.com To: cake-php@googlegroups.com Sent: Thursday, January 22, 2009 2:49:31 AM Subject: Re: Dynamic Model Call Try $this-AreaInfo-{$model_name}-find(...) On Wed, Jan 21, 2009 at 12:33

Re: getLastInsertId or something similar

2009-01-21 Thread Yusuf Widiyatmono
Regards Yusuf Widiyatmono Software Engineer Phone +62 (361) 755 025 Facsimile +62 (361) 755 024 Mobile +62 813 2126 4488 www.mitrais.com From: mike mwu...@gmail.com To: CakePHP cake-php@googlegroups.com Sent: Thursday, January 22, 2009 9:13:48 AM Subject: Re

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
PM Subject: Re: Dynamic Model Call Are these models loaded? On Wed, Jan 21, 2009 at 6:10 PM, Yusuf Widiyatmono wmo...@yahoo.com wrote: i did and it still shows me same errors... From: brian bally.z...@gmail.com To: cake-php@googlegroups.com Sent: Thursday

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
');** From: brian bally.z...@gmail.com To: cake-php@googlegroups.com Sent: Thursday, January 22, 2009 1:06:39 PM Subject: Re: Dynamic Model Call What is on line** (from the error msg)? On Wed, Jan 21, 2009 at 10:37 PM, Yusuf Widiyatmono wmo...@yahoo.com wrote: the model is loaded... see

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
your question is, then. Yes, you can use a variable as the model name, if used the way I showed you. But, where did this error come from? If it was from the find() line, how is it that your array has data in it? On Wed, Jan 21, 2009 at 11:22 PM, Yusuf Widiyatmono wmo...@yahoo.com wrote: sorry it just

exit() after redirect

2006-09-21 Thread yusuf
Hi, On this page: http://manual.cakephp.org/appendix/simple_user_auth in the example under /app/controllers/users_controller.php (partial) there is no exit() after the redirect in the login function. I have read on the web that you need to provide an exit() after the redirect, or addtional code

Re: exit() after redirect

2006-09-21 Thread yusuf
Nope, calling exit() after a redirect doesn't break anything. The only reason you wouldn't want to call it after a redirect is if you had some other functionality that needed to be executed in a controller callback, or if, for some reason, you really really wanted your view to render. But

Re: How to with layout/templates?

2006-06-13 Thread yusuf
yes, i was trying to get at themeing. thanks. John Zimmerman [gmail] wrote: Chris Kausel created a class called Icing which I have not tried but I believe is trying to address some of the concerns that you have. You can view the code at

popular framework?

2006-06-07 Thread yusuf
Is cake php the most popular framework for php? Are there others that are widely used out there? Also, how does cake scale up, in terms of users and resource over head? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the