How do I install the latest version(3.2.3) of Cakephp on shared hosting?

2016-03-13 Thread Prabhdeep Kaur
How do I install the latest version(3.2.3) of Cakephp on shared hosting? <http://stackoverflow.com/questions/35770133/how-do-i-install-the-latest-version3-2-3-of-cakephp-on-shared-hosting> Can anyone help me to install latest version of Cakephp on shared hosting. The latest Cakephp

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-15 Thread heavyKevy
Okay, problem solved. The _ext is not needed, removed it. added the line: $this->RequestHandler->renderAs($this, 'json'); Now renders as a JsonView and the _Serialize is automatically detected and no template file required. Regards, --Kevin On Wednesday, October 14, 2015 at 2:02:24 PM U

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread heavyKevy
I discovered a bug in the Route.php file. the reg expression used for finding extensions only works if no parameters are passed in the URL. I have temporarily modified my Routes.php file to find the extension anywhere in the string and used str_replace to remove the .json from the url and I no l

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread Kevin Arnett
code that generated the URL: $url = $this->Url->build(['controller' => 'Purchases', 'action' => 'get_sales_people_select_list','_ext'=>'json']); $url = $url . '/47'; The generated URL: /purchases/get-sales-people-select-list.json/47 Is this not correct? On Wed, Oct 14, 2015 at 4:40 PM, Anthony G

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread Anthony GRASSIOT
Did you correctly specify the data type json in your ajax call ? Le 14 oct. 2015 09:02, "heavyKevy" a écrit : > I have gone through the documentation, which is a bit too vague, and tried > many things, but I still am getting an error that the template file is > missing. > > I had this working sen

How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread heavyKevy
I have gone through the documentation, which is a bit too vague, and tried many things, but I still am getting an error that the template file is missing. I had this working sending back a json response in 3.0 using ext='json', yet after updating to 3.1 it is broken. I checked the migration

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2015-07-05 Thread DJ Far
SessionHelper is deprecated; use $this->request->session()->read('Auth.User.id'); On Monday, December 8, 2014 at 2:29:35 AM UTC-8, euromark wrote: > > if ($this->Session>check('Auth.User.id') {} > > > Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco: >> >> I want to check in my default l

Re: In CakePHP 3, how do I bake admin controller?

2015-05-01 Thread Simerjit Kaur
On baking the controller and model bin/cake bake controller --prefix admin users and bin/cake bake template --prefix admin users,it creates the admin folder, in it it creates the folder for users, then it includes the files, on executing the http://127.0.0.1:/admin/users it gives error of

Re: In CakePHP 3, how do I bake admin controller?

2015-03-14 Thread Andre Santiago
I think it is worth adding to euromark's reply with an example full command because for a few minutes I struggled until I looked into --help bin/cake bake controller --prefix admin users I had erroneously thought that --prefix admin I was the thing on the command line CakePHP 3 rocks Thanks

Re: How do I update cakephp existing app?

2015-01-30 Thread frocco
Thank you On Wednesday, January 28, 2015 at 11:22:26 AM UTC-5, frocco wrote: > > Hello, > > I see cakephp 3 has been updated, how do I update my current app that is > using an older version of cakephp 3? > > Thanks > -- Like Us on FaceBook https://www.facebook.com/Ca

Re: How do I update cakephp existing app?

2015-01-29 Thread Cakephp Expert
For more help, read this post: http://mark-story.com/posts/view/using-composer-in-cakephp-3-0 On Wednesday, January 28, 2015 at 9:52:26 PM UTC+5:30, frocco wrote: > > Hello, > > I see cakephp 3 has been updated, how do I update my current app that is > using an older versi

Re: How do I update cakephp existing app?

2015-01-28 Thread Leandro Machado Pereira
You can do composer.phar update Em qua, 28 de jan de 2015 14:22, frocco escreveu: > Hello, > > I see cakephp 3 has been updated, how do I update my current app that is > using an older version of cakephp 3? > > Thanks > > -- > Like Us on FaceBook https://www.facebo

How do I update cakephp existing app?

2015-01-28 Thread frocco
Hello, I see cakephp 3 has been updated, how do I update my current app that is using an older version of cakephp 3? Thanks -- 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

Re: CakePHP3 testing behavior - how do I mock a query?

2015-01-07 Thread José Lorenzo
This is an example of mocking a query: https://github.com/cakephp/cakephp/blob/3.0/tests/TestCase/ORM/Association/HasManyTest.php#L181 You will probably need to mock the Table's find or query() method to be able to inject your mocked query when the method is called. -- Like Us on FaceBook http

CakePHP3 testing behavior - how do I mock a query?

2015-01-06 Thread badben
tor']); if (!$config['unique']) { return $slug; } $results = $this->_scope($this->_table->find()) ->select(['id', $config['slug']]) ->where([$config['slug'] =&

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread frocco
Thank you On Monday, December 8, 2014 4:51:56 PM UTC-5, euromark wrote: > > Yes, you can simply use Auth->allow(listofactionnames) as documented to > make the non admin actions public. > either in each controller, or globally in your app controller > > > Am Montag, 8. Dezember 2014 19:28:17 UTC+1

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread euromark
Yes, you can simply use Auth->allow(listofactionnames) as documented to make the non admin actions public. either in each controller, or globally in your app controller Am Montag, 8. Dezember 2014 19:28:17 UTC+1 schrieb frocco: > > I have another question. > > I used bake with the prefix admin a

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread frocco
I have another question. I used bake with the prefix admin and now need to protect each controller to allow admin only. Is this done in the beforeFilter? What is the correct syntax? Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread frocco
Thank you for your help. This seems to be working. if($this->Session->check('Auth.User.role') == 'admin') On Monday, December 8, 2014 9:09:15 AM UTC-5, euromark wrote: > > Same thing. Just use this wrapper. > And use debug kit to see how the session data looks like. > But you should be able to us

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread euromark
Same thing. Just use this wrapper. And use debug kit to see how the session data looks like. But you should be able to use the knowledge you gained in my previous answer to translate it to the role question. The answer is right in front of you. mark Am Montag, 8. Dezember 2014 12:13:53 UTC+1 sc

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread frocco
Thank you, What is the syntax to check if they have a role called admin? Field name is role. On Monday, December 8, 2014 5:29:35 AM UTC-5, euromark wrote: > > if ($this->Session>check('Auth.User.id') {} > > > Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco: >> >> I want to check in my

Re: In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-08 Thread euromark
if ($this->Session>check('Auth.User.id') {} Am Montag, 8. Dezember 2014 02:32:28 UTC+1 schrieb frocco: > > I want to check in my default layout. > > Thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message bec

In CakePHP 3, how do I check if user is logged in and has admin rights?

2014-12-07 Thread frocco
I want to check in my default layout. Thanks -- 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" group. To unsubscribe from this group and stop receiving e

Re: In CakePHP 3, how do I bake admin controller?

2014-12-04 Thread frocco
Thanks, Did not know about the --prefix admin Liking version 3 alot, have used yii and laravel before, also django On Wednesday, December 3, 2014 10:55:20 AM UTC-5, frocco wrote: > > I want to create admin controller with view > > Thanks > -- Like Us on FaceBook https://www.facebook.com/CakeP

Re: In CakePHP 3, how do I bake admin controller?

2014-12-04 Thread euromark
No need to move anything Just use bake correctly as documented: cake bake ... --prefix admin That will create it in the right places. Am Donnerstag, 4. Dezember 2014 17:38:46 UTC+1 schrieb cesar calvo: > > After bake just move Templates and Controllers to Admin directory and > adjust the C

Re: In CakePHP 3, how do I bake admin controller?

2014-12-04 Thread cesar calvo
After bake just move Templates and Controllers to Admin directory and adjust the Controller namespace El jueves, 4 de diciembre de 2014 14:03:02 UTC-2, frocco escribió: > > Thanks, > > But when I use bake, will it generate the controller under admin? > > > On Wednesday, December 3, 2014 10:55:20

Re: In CakePHP 3, how do I bake admin controller?

2014-12-04 Thread frocco
Thanks, But when I use bake, will it generate the controller under admin? On Wednesday, December 3, 2014 10:55:20 AM UTC-5, frocco wrote: > > I want to create admin controller with view > > Thanks > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/C

Re: In CakePHP 3, how do I bake admin controller?

2014-12-04 Thread cesar calvo
In your config/routes.php add this: Router::prefix('admin', function ($routes) { $routes->fallbacks(); }); In AppController.php: class AppController extends Controller { public function initialize() { $this->loadComponent('Auth') } public function beforeFilter(Event $event

In CakePHP 3, how do I bake admin controller?

2014-12-03 Thread frocco
I want to create admin controller with view Thanks -- 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" group. To unsubscribe from this group and stop recei

Re: How do I read and write session variables in CakePHP 3?

2014-12-01 Thread frocco
Thanks, my eyes are tired. :) On Monday, December 1, 2014 8:51:34 PM UTC-5, rchavik wrote: > > > > On Tuesday, December 2, 2014 7:59:40 AM UTC+7, frocco wrote: >> >> $session = $this->request->session(); >> $session()->write('Search.category', $catid); >> >> $value $session->read('Search.category'

Re: How do I read and write session variables in CakePHP 3?

2014-12-01 Thread rchavik
On Tuesday, December 2, 2014 7:59:40 AM UTC+7, frocco wrote: > > $session = $this->request->session(); > $session()->write('Search.category', $catid); > > $value $session->read('Search.category'); > > syntax error, unexpected '$session' (T_VARIABLE) > > What is wrong? > You are missing a '='.

How do I read and write session variables in CakePHP 3?

2014-12-01 Thread frocco
$session = $this->request->session(); $session()->write('Search.category', $catid); $value $session->read('Search.category'); syntax error, unexpected '$session' (T_VARIABLE) What is wrong? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

how do I use admin_index with bake?

2014-11-30 Thread Pablo Rojas
Yo need enable admin prefix in route.php first, then run bake -- 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" group. To unsubscribe from this group and

how do I use admin_index with bake?

2014-11-27 Thread frocco
I generated my controller and choose admin and it generated admin_index, admin_add... but the views are just index.cp, edit.ctp is bake supposed to generated admin_index? I am new to cake and trying to understand. Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitt

Re: How do I conenct to SOAP/WDSL with WSE 2.0 auth

2014-10-22 Thread rchavik
On Tuesday, October 21, 2014 4:32:42 PM UTC+7, Michael Hill wrote: > I have been trying to get my PHP application to chat with a .net server using SOAP and WDSL with WSE 2.0 auth. > This is a little bit of a pain and was wondering if anyone could point in the direction of a some code or a tutor

How do I conenct to SOAP/WDSL with WSE 2.0 auth

2014-10-21 Thread Michael Hill
Hi, I have been trying to get my PHP application to chat with a .net server using SOAP and WDSL with WSE 2.0 auth. This is a little bit of a pain and was wondering if anyone could point in the direction of a some code or a tutorial or plugin that might help. Most of the searches that I have d

Re: 3.0 how do I use vendor ?

2014-06-26 Thread euromark
You could/should use https://github.com/ceeram/CakePdf it brings all with it - in a clean way. Am Dienstag, 24. Juni 2014 11:48:04 UTC+2 schrieb Archana Goyal: > > I want convert html to pdf in my application.To do so I need to import > vendor(tcpdf) in my controller. > Please suggest any other

3.0 how do I use vendor ?

2014-06-26 Thread mark_story
Tcpdf has several composer packages. You can and should usr composer to dienload and install vendor libraries like tcpdf. Once the class has been installed, you can just start using the classes. Composer's autoloader will ensure the classes are loaded. -mark -- Like Us on FaceBook https://www

Re: 3.0 how do I use vendor ?

2014-06-25 Thread Soumavo Chatterjee
yes at controller page. On Wed, Jun 25, 2014 at 4:13 PM, Archana Goyal wrote: > Ok, thanks for reply. > > > On Wednesday, 25 June 2014 01:04:19 UTC+5:30, José Lorenzo wrote: >> >> What vendor? >> >> You could just use 'require' >> >> On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wr

Re: 3.0 how do I use vendor ?

2014-06-25 Thread Archana Goyal
Ok, thanks for reply. On Wednesday, 25 June 2014 01:04:19 UTC+5:30, José Lorenzo wrote: > > What vendor? > > You could just use 'require' > > On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wrote: >> >> I want convert html to pdf in my application.To do so I need to import >> vendor(tc

Re: 3.0 how do I use vendor ?

2014-06-24 Thread José Lorenzo
What vendor? You could just use 'require' On Tuesday, June 24, 2014 11:48:04 AM UTC+2, Archana Goyal wrote: > > I want convert html to pdf in my application.To do so I need to import > vendor(tcpdf) in my controller. > Please suggest any other solution to convert html to pdf or way to import >

Re: 3.0 how do I use vendor ?

2014-06-24 Thread Soumavo Chatterjee
then u can include it by using simple include keeping the complete structure on vendor folder On Tue, Jun 24, 2014 at 3:25 PM, Archana Goyal wrote: > I can not use App::Import because this is not in CakePHP 3. > > > On Tuesday, 24 June 2014 15:20:11 UTC+5:30, dada123 wrote: > >> Using App::Impo

Re: 3.0 how do I use vendor ?

2014-06-24 Thread Archana Goyal
I can not use App::Import because this is not in CakePHP 3. On Tuesday, 24 June 2014 15:20:11 UTC+5:30, dada123 wrote: > > Using App::Import > > > On Tue, Jun 24, 2014 at 3:18 PM, Archana Goyal > wrote: > >> I want convert html to pdf in my application.To do so I need to import >> vendor(tcpdf)

Re: 3.0 how do I use vendor ?

2014-06-24 Thread Soumavo Chatterjee
Using App::Import On Tue, Jun 24, 2014 at 3:18 PM, Archana Goyal wrote: > I want convert html to pdf in my application.To do so I need to import > vendor(tcpdf) in my controller. > Please suggest any other solution to convert html to pdf or way to import > vendor. > > -- > Like Us on FaceBook h

3.0 how do I use vendor ?

2014-06-24 Thread Archana Goyal
I want convert html to pdf in my application.To do so I need to import vendor(tcpdf) in my controller. Please suggest any other solution to convert html to pdf or way to import vendor. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- Yo

Re: How do i install schema shell? trying to use a cakephp plugin

2014-06-13 Thread Alejandro Vilar
try with this from console: *cake schema create users* 2014-06-13 10:50 GMT-03:00 Art Sir : > I am trying to use this > > https://github.com/CakeDC/users > > I placed it in my plugin folders but i'm unsure how to install the table > necessary to work this plugin. Thank you > > -- > Like Us on Fa

How do i install schema shell? trying to use a cakephp plugin

2014-06-13 Thread Art Sir
I am trying to use this https://github.com/CakeDC/users I placed it in my plugin folders but i'm unsure how to install the table necessary to work this plugin. Thank you -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received thi

How do i install schema shell? trying to use a cakephp plugin

2014-06-13 Thread Art Sir
I am trying to use this https://github.com/CakeDC/users I placed it in my plugin folders but i'm unsure how to install the table necessary to work this plugin. Thank you -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received thi

Re: how do I get a barcode inside a table?

2013-08-07 Thread ravage1984
m Mittwoch, 7. August 2013 09:53:51 UTC+2 schrieb sneha kulkarni: > > Hi, > > how do I get a barcode inside a table? Now it just floats outside the > table in > the upper left corner of the pdf. How do I get it inside the td? > Help much appreciated. > -- Like Us on FaceBoo

how do I get a barcode inside a table?

2013-08-07 Thread sneha kulkarni
Hi, how do I get a barcode inside a table? Now it just floats outside the table in the upper left corner of the pdf. How do I get it inside the td? Help much appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: How do I search all the columns at once?

2013-02-12 Thread AD7six
What have you tried, what sql query does what you want to do? AD On Tuesday, 12 February 2013 05:57:43 UTC+1, Shahruk Khan wrote: > > Say I have column_1 and column_2 for a row. column_1 value is A and > column_2 value is B. My query is A B. How can I perform this kind of search > with CakePHP?

How do I search all the columns at once?

2013-02-11 Thread Shahruk Khan
Say I have column_1 and column_2 for a row. column_1 value is A and column_2 value is B. My query is A B. How can I perform this kind of search with CakePHP? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message bec

Re: Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread Daniel
Now I know, thanks. On Thursday, 15 November 2012 18:45:00 UTC, cricket wrote: > I mean, I never see the *initial* post. Once a thread starts I see my own. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message be

Re: Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread lowpass
I mean, I never see the *initial* post. Once a thread starts I see my own. On Thu, Nov 15, 2012 at 1:43 PM, lowpass wrote: > I don't know. I never see my own posts; just the replies. > > On Thu, Nov 15, 2012 at 1:19 PM, Daniel wrote: >> Oh, how do I unhide them? >> Tha

Re: Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread lowpass
I don't know. I never see my own posts; just the replies. On Thu, Nov 15, 2012 at 1:19 PM, Daniel wrote: > Oh, how do I unhide them? > Thanks. > > On Thursday, 15 November 2012 18:02:26 UTC, cricket wrote: >> >> It did show up. It's gmail that's hid

Re: Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread Daniel
Oh, how do I unhide them? Thanks. On Thursday, 15 November 2012 18:02:26 UTC, cricket wrote: > It did show up. It's gmail that's hiding your own posts. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You recei

Re: Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread lowpass
It did show up. It's gmail that's hiding your own posts. On Thu, Nov 15, 2012 at 12:14 PM, Daniel wrote: > Hello, > I tried to make a post twice to this group but the message does not appear. > How do I contact the group moderator? > Thanks. > > >

Post not appearing here. How do I contact the group moderator?

2012-11-15 Thread Daniel
Hello, I tried to make a post twice to this group but the message does not appear. How do I contact the group moderator? Thanks. -- 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

Re: how do I use saveAll()?

2012-10-17 Thread Gustav Persson
I've solved the problem myself now by reading the CakePHP cookbook a little better: Changed in version 2.1: You can now save deeper associated data as well with setting $options['deep'] = true; So for me this was all I needed: $saveOptions['deep'] = true; if ($this->Recipe->saveAll($this->re

how do I use saveAll()?

2012-10-15 Thread Gustav Persson
Hii, I'm trying to use the saveAll() method to create and save related data in my CakePHP (2.2.1) app. I have a form where the user can input recipe information and create recipeitems and ingredients. The problem is that I don't know how to store the ingredients data. I use the saveAll() metho

Re: How do i validate multiple fields using the same field name?

2012-09-16 Thread resting
Ok, finally able to get it to work. The results if anyone is interested. https://github.com/resting/cakephp/commits/test_validation On Monday, 17 September 2012 10:29:07 UTC+8, resting wrote: > > Hi yes, realized my mistake. > > Have made the changes > https://github.com/resting/cakephp/commit

Re: How do i validate multiple fields using the same field name?

2012-09-16 Thread resting
Hi yes, realized my mistake. Have made the changes https://github.com/resting/cakephp/commit/ce2ffa4300f59720566a85db0b5ced5d4b96a117 But the result is still the same...weird... On Monday, 17 September 2012 03:40:36 UTC+8, euromark wrote: > > have you ever seen validates() taking arguments? es

Re: How do i validate multiple fields using the same field name?

2012-09-16 Thread euromark
have you ever seen validates() taking arguments? especially $data? nope $this->Model->set($this->request->data) $result = $this->Model->validates() as the book describes Am Sonntag, 16. September 2012 20:09:24 UTC+2 schrieb resting: > > Created a test setup with v2.2.0 > > Validation doesn't w

Re: How do i validate multiple fields using the same field name?

2012-09-16 Thread resting
Created a test setup with v2.2.0 Validation doesn't work. Empty fields still pass. What am I doing wrong here? Full source: https://github.com/resting/cakephp/blob/test_validation/app/Controller/MyFormController.php On Friday, 14 September 2012 15:42:36 UTC+8, resting wrote: > > I have someth

How do i validate multiple fields using the same field name?

2012-09-14 Thread resting
I have something like this in my view: echo $this->Form->input('Modelname.1.fieldname'); (ref: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#field-naming-conventions) I have this in my model: public $validate = array( 'filename' => array('ruleFilenameEmpty' =>

Re: Events - how do I attach additional callbacks to the HelperCollection

2012-09-08 Thread Greg Skerman
Ahh thanks for the example.. got it all working now :) On Sat, Sep 8, 2012 at 3:09 PM, rchavik wrote: > > On Friday, September 7, 2012 10:23:06 PM UTC+7, Greg wrote: >> >> Hi, >> >> I've got a case where I want one helper to raise events on other helpers. >> The concept is that plugins can mani

Re: Events - how do I attach additional callbacks to the HelperCollection

2012-09-07 Thread rchavik
On Friday, September 7, 2012 10:23:06 PM UTC+7, Greg wrote: > > Hi, > > I've got a case where I want one helper to raise events on other helpers. > The concept is that plugins can manipulate the output of a MenuHelper by > returning additional menu items at runtime. > > Is there a way that I can

Events - how do I attach additional callbacks to the HelperCollection

2012-09-07 Thread Greg Skerman
Hi, I've got a case where I want one helper to raise events on other helpers. The concept is that plugins can manipulate the output of a MenuHelper by returning additional menu items at runtime. Is there a way that I can access an instance of the helper collection and attach additional callbacks

Re: How do I upload image file to server by saving path file not BLOB?

2012-09-01 Thread Prarinthon Ajinajarn
Thanks so much.it work perfectly that help me to save time to do my project. Thanks again On Thursday, August 30, 2012 3:56:42 PM UTC+7, suttipong Pratum wrote: > > example > > https://github.com/iwat/twdemo/blob/master/Controller/DemoController.php > > in DemoController and view > > good luc

Re: How do I upload image file to server by saving path file not BLOB?

2012-08-30 Thread soda sonic
example https://github.com/iwat/twdemo/blob/master/Controller/DemoController.php in DemoController and view good luck 2012/8/30 Prarinthon Ajinajarn > I try to googling but I only find upload file by saving in BLOB type > but i want to saving path file i dont know how > now i can do upload v

How do I upload image file to server by saving path file not BLOB?

2012-08-30 Thread Prarinthon Ajinajarn
I try to googling but I only find upload file by saving in BLOB type but i want to saving path file i dont know how now i can do upload view.ctp to browse file img but i dont know how to save file path upload.ctp Form->create('File', array('type' => 'file')); echo $this->Form->input('fileName', arr

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread lowpass
On Fri, Aug 24, 2012 at 6:14 PM, kevin.ncbible wrote: > Thank you cricket. > > From what you've shared, I've been learning a lot about the Containable > behavior, including limiting the fields displayed. That is very helpful. I > was using: > > 'contain' => array( > 'Passage' => array( > 'f

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread kevin.ncbible
Thank you cricket. >From what you've shared, I've been learning a lot about the Containable behavior, including limiting the fields displayed. That is very helpful. I was using: 'contain' => array( 'Passage' => array( 'fields' => array( 'Passage.id', 'Passage.ref_abbr') ),

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread Karey Powell
association > setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a > view of "Topic" it also shows its children listed at the bottom of the > page. That works great, but I want that Passage ref_abbr field included in > this list as well. So, how

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread lowpass
'ref_abbr'] >> >> Now, here's the question: The "Topic" model also has a self association >> setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a >> view of "Topic" it also shows its children listed at the bottom of the pag

Re: Model with self association: how do I reference associated field from Child?

2012-08-24 Thread lowpass
x27;] > > Now, here's the question: The "Topic" model also has a self association > setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a > view of "Topic" it also shows its children listed at the bottom of the page. > That works great,

Model with self association: how do I reference associated field from Child?

2012-08-23 Thread kevin.ncbible
ociation setup with $belongsTo ParentTopic and $hasMany ChildTopic. So, when I get a view of "Topic" it also shows its children listed at the bottom of the page. That works great, but I want that Passage ref_abbr field included in this list as well. So, how do I get a view of ChildTopic th

How do I look a plugin config file?

2012-08-09 Thread Shahruk Khan
My first time converting a PHP class to a CakePHP library! How do I load a configuration file inside the plugin's controller? I am using the MailChimp API Class for PHP. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to t

cake_sessions in DB and how do I use the data?

2012-08-09 Thread MetZ
Okei,, so I am trying out the save sessions to DB and make use of them in my views. My cake_sessions table are been updated just fine with my sessions data, but now I am wondering how to access this data. Couple things I want to to is: 1) Display current logged in users => There are 3 logged i

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Tilen Majerle
actually: paginate uses Model::find('all', $yourconditions); in $yourconditions you can pass all things like fields, conditions, limit, group, etc... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/28 Mitchell, Kevin > Thank you, Chetan: > > That was helpful; I just had fun with it. Wh

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Mitchell, Kevin
Thank you, Chetan: That was helpful; I just had fun with it. What you shared led me to investigate the Pagination page and I see I can use in the first array, in addition to limit and conditions, other keys like: fields, order, page, contain, joins, recursive -- similar to find(). Again, I do app

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread chetan varshney
S: I guess I should start by learning how to do this with find() rather > than paginate(). > > I have working ... > > public function index() { > $this->Topic->recursive = 0; > $conditions = array("Topic.type = 'Bk'"); > debugger::dump($this->Topic

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Kevin Mitchell
scs: Thank you! So. with your help, I now have working, using request->params and a url of /topics/index/Bk or /topics/index/PR, etc. ... public function index() { $this->Topic->recursive = 0; $type = $this->request->params['pass'][0]; $conditions = array("Topic.type" => $type); $this->set('top

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread scs
> I have working ... > > public function index() { > $this->Topic->recursive = 0; > $conditions = array("Topic.type = 'Bk'"); > debugger::dump($this->Topic->find('all', array('conditions' => > $conditions))); die; > }

Re: How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Kevin Mitchell
array('conditions' => $conditions))); die; } So, my question becomes: how do I pass a value the value 'Bk' to $conditions? ... and, how would this be different using paginate() instead of find(). Thank you! Kevin -- Our newest site for the community: CakePHP Video Tutorials

How do I / Do I use parameters to limit the number of returned records?

2012-07-27 Thread Kevin Mitchell
Hello -- and thank you for being willing to help. I'm new to PHP and CakePHP, but making progress. I have MVC setup for a table called topics. In the controller for public function index I have: $this->set('topics', $this->paginate()); That returns 15,000 records! I just want to see those of a

How do I get the minimum and maximum of a field.

2012-07-20 Thread Awemo Roland
Hi, I have had this problem for a few weeks now, and I am not satisfied with my current solution. I have a table which has length and price attributes. It is linked to other tables with hasMany relationships. What I want to do is to retrieve the minimum and maximum values for both aforementio

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread lowpass
foo.sql >>> >> >>> >> Next include these two lines at the top of your import file to tell >>> >> the DB how to treat the text: >>> >> >>> >> SET NAMES 'utf8'; >>> >> SET CHARACTER SET 

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread Kevin Mitchell
lowing in database.php so that when >> >> Cake connects it tells the DB to respond with the correct encoding: >> >> >> >> 'encoding' => 'utf8' >> >> >> >> In core.php: >> >> >> >> Configur

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread Kevin Mitchell
e connects it tells the DB to respond with the correct encoding: > >> > >> 'encoding' => 'utf8' > >> > >> In core.php: > >> > >> Configure::write('App.encoding', 'UTF-8'); > >> > &g

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread lowpass
gt; In core.php: >> >> Configure::write('App.encoding', 'UTF-8'); >> >> In your layout(s): >> >> Html->charset() ?> >> >> The latter will include this in the head: >> >> >> >> ... which tells the bro

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread Kevin Mitchell
ing just learned how to bake a table to create > > Model, Controller, and View. One of the fields in my database is Hebrew > > (with diacritics) and one is Greek; the remainder of the fields are > English. > > How do I get the Hebrew and Greek to show up correctly? As is,

Re: How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-06 Thread lowpass
ich tells the browser how to treat the content. On Thu, Jul 5, 2012 at 11:01 PM, Kevin Mitchell wrote: > I am new to CakePHP, having just learned how to bake a table to create > Model, Controller, and View. One of the fields in my database is Hebrew > (with diacritics) and one is Greek; t

How do I get some fields to display as Greek, some as Hebrew (most as English)?

2012-07-05 Thread Kevin Mitchell
I am new to CakePHP, having just learned how to bake a table to create Model, Controller, and View. One of the fields in my database is Hebrew (with diacritics) and one is Greek; the remainder of the fields are English. How do I get the Hebrew and Greek to show up correctly? As is, I just see

Re: How do I resolve this error?

2012-05-27 Thread lowpass
It looks like your CAKE_CORE_INCLUDE_PATH is defined as the empty string. Open app\webroot\index.php and look at line 81. The is where Cake is told where to find the libs. If the runtime is reaching this else block then you must have uncommented line 59. Check that you've put the correct path. Is t

Re: How do I send emails from AppController? (CakePHP 2.0)

2012-05-19 Thread WhyNotSmile
Thanks, I got it working! Sharon On Saturday, 19 May 2012 04:02:10 UTC+1, GB wrote: > > Recently I had similar problem. In one of my apps, this works: > $email = new CakeEmail('smtp'); > > In a second I had to separate out config setting: > $email = new CakeEmail(); > $

Re: How do I send emails from AppController? (CakePHP 2.0)

2012-05-19 Thread Jimit Kapadya
Hello All, how to delete Multiple tables fields values in cakephp 2.0 -- 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

Re: How do I send emails from AppController? (CakePHP 2.0)

2012-05-18 Thread GB
Recently I had similar problem. In one of my apps, this works: $email = new CakeEmail('smtp'); In a second I had to separate out config setting: $email = new CakeEmail(); $email->config('smtp'); Don't ask me why the need for 2 as once it was working I moved on. George

How do I send emails from AppController? (CakePHP 2.0)

2012-05-18 Thread WhyNotSmile
I've been sending emails from my PagesController, and that has been working fine, but now I need to send from AppController instead, and I can't get the emails to send. As far as I can see, I have exactly the same code in both, but the AppController function simply doesn't send the email. Ther

How do I resolve this error?

2012-05-18 Thread yenny
Warning: include(cake\bootstrap.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\lawsocscheme \app\webroot\index.php on line 81 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sit

  1   2   3   4   5   6   7   >