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 kno

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 Grou

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 subscrib

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) now how can i turn it back to array? i tried to use, $array = Set::reverse(new Xml('myfle.xml')); but the result just give me one index of array like this.. Arra

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 wrote: >

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 wrote: > > > Hi > I created an application according to MVC rules, my .htaccess files look > like the specifications in > > http://bakery.ca

Re: Top 10 Framework

2009-02-02 Thread yusuf widi
ation is not even half as nice as in Cake - > > > > > relations are made by hand in every model, controller, view. a > little > > > > > bit annoying. But it is fast as hell. I implemented a little > project > > > > > database which I also made in cake and (

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 than

Re: HABTM on a HABTM

2009-01-29 Thread yusuf widi
array( 'className' => 'Area', 'foreignKey' => 'parent_id', 'dependent' => true ) ); ?> this stuff works well with me... On Thu, Jan 29, 2009 at 6:35 PM, AD7six wrote: > > > > On Jan 29, 9:58 am, Miles J wrote: > > It seems that my belon

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 wrote: > > try the xampp or ubuntu websites > > On Jan 29, 12:18 pm, Sergi Pasoev wrote: > > Hi! > > > > Plese, tell me where to download

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, ma

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: 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... function test(){ document.ItemEdit.getElementById('ItemQuantytyHid').value = document.ItemEdit.getElementById('ItemQuantyty')

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
nd what 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 wrote: > sorry it ju

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
ind('list');** From: brian 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 wrote: > the model is loaded... > see the prin

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
: Dynamic Model Call Are these models loaded? On Wed, Jan 21, 2009 at 6:10 PM, Yusuf Widiyatmono wrote: > i did and it still shows me same errors... > > > > From: brian > To: cake-php@googlegroups.com > Sent: Thursday, January 22, 2009 2:49:31 AM &

Re: getLastInsertId or something similar

2009-01-21 Thread Yusuf Widiyatmono
what your question. Best 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 To: CakePHP Sent: Thursday, January 22, 2009 9:13:48 AM Subject: Re: getLastIns

Re: Dynamic Model Call

2009-01-21 Thread Yusuf Widiyatmono
i did and it still shows me same errors... From: brian 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 AM, wmonou wrote:

Re: Protecting cake source?

2006-09-21 Thread yusuf
Are there any freeware tools to protect php source? I tried searching, but didn't have much luck... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@goo

Re: Protecting cake source?

2006-09-21 Thread yusuf
> you might try searching the list, this was talked about just recently, > try using terms like > 'Zend Guard' or 'SourceGuardian' Thanks, its here: http://groups.google.com/group/cake-php/browse_thread/thread/a17fcf56c273b0/b6c655fa77420176?lnk=gst&q=Zend+Guard&rnum=3#b6c655fa77420176 --~--~--

Protecting cake source?

2006-09-21 Thread yusuf
Hi, If I were to create a whole application using cake framework, and I want to distribute it to customers, is there a way I can protect the source code of the files being distributed? Like compiling to object code or something? Thanks. --~--~-~--~~~---~--~~ You

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.

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 c

Re: How to with layout/templates?

2006-06-13 Thread yusuf
yes, i was trying to get at "theme"ing. 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 > http://cakeforge.org/snippet/detail.php?type=s

How to with layout/templates?

2006-06-09 Thread yusuf
The View part seems to have snippets of rendering code to render particular data blobs (like a html table of values in a database). i wanted to know, how this ties into the whole layout aspect. Specifically, since the little view always has the same render code, how is it truly able to change with

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 Goo