Re: Custom Helper inside CakeMail views

2012-03-01 Thread Tilen Majerle
Read manual in cakephp book for cakeemail Dne petek, 02. marec 2012 je pošiljatelj GB napisal: > I am using a custom Helper that renders my views along with some standard view logic. I'd like to use that same helper in emails I send using v2.0 CakeMail component (e.g. send copy of web view conten

Custom Helper inside CakeMail views

2012-03-01 Thread GB
I am using a custom Helper that renders my views along with some standard view logic. I'd like to use that same helper in emails I send using v2.0 CakeMail component (e.g. send copy of web view contents to customer in email). However, when I reference that Helper I get an error that it is not

Re: Sending emoticons from iPhone to CakePHP but received blank value

2012-03-01 Thread Power@IT
Finally, we upgraded to *5.5+* and emoticons are displayed normally, so that it could be compatible with our future development. -- 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

Ajax Pagination using elements - only each second link is using ajax function

2012-03-01 Thread heohni
Hi, this is my controller: public function search($searchSingleId = false, $singleId = null) { if ($this->request->is('ajax')) { $this->layout = false; } ..snip $this->set('results', $results); if ($this->request->is('ajax')) { $this->render('/Elements/paginate-results'); return; } } an

Re: How to make the routes working with CakePHP in a subdirectory

2012-03-01 Thread Optik Fluffel
Got it, i just forgot to add the RewriteBase to one of the three .htaccess files. Sorry guys :) Am Donnerstag, 1. März 2012 21:09:41 UTC+1 schrieb Optik Fluffel: > > I have a little Webpage set up with a little CakePHP Webapp in it. > The CakePHP stuff is in a subdirectory and so I got my .htacc

Re: CakePHP 2.1 pagination routing (Help)

2012-03-01 Thread Salines
You save my life :) Thank You. -- 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+uns

Re: CakePHP 2.1 pagination routing (Help)

2012-03-01 Thread lowpass
I just ran into this with 2.x. The problem is that the page number is looked for in CakeRequest's 'named' params. I fixed it by putting this in AppController::beforeFilter(): if (isset($this->request->params['page'])) { $this->request->params['named']['page'] = $this->request->params['pa

Re: Send XML as parameter on a POST request

2012-03-01 Thread lowpass
That's not a POST request, it's GET. For really long data, it's better to send it as an actual POST. On Wed, Feb 29, 2012 at 1:00 PM, darkangel wrote: > Hi, I'm getting started with Cake and I'm developing a REST web service but > have some troubles. I need to send a XML string to the Record acti

Re: POSTing to CakePHP from iOS (CakePHP 1.3)

2012-03-01 Thread jeremyharris
Sounds like an iOS question http://stackoverflow.com/questions/5537297/ios-how-to-perform-a-http-post-request On Thursday, March 1, 2012 1:15:21 PM UTC-8, 8vius wrote: > > I've set up my RESTful web services and I'm trying to POST to my add > method, how would the URL be to do this? I haven't

Re: Command history in CakePHP console

2012-03-01 Thread jeremyharris
Wouldn't you just keep a history of everything that goes through Shell::in() and then iterate through the history when ShellDispatcher::getInput() returned an arrow? Okay so maybe not super easy. Actually I wonder if it's even possible since the shell already captures those keys. Hmm interestin

Re: Command history in CakePHP console

2012-03-01 Thread Simon Males
I was a little skeptical of your comment that it shouldn't be hard to code... then came across this: http://www.php.net/manual/en/features.commandline.interactive.php I didn't know that PHP had an interactive shell. I believe the closest I got was the -r parameter! On Thu, Mar 1, 2012 at 3:55 PM

Re: Filter on a deep model association

2012-03-01 Thread lowpass
But the 2nd version would be pretty ugly because the Collection array would be repeated for each Author. I think the first is the way to go because what you're really doing is viewing a Collection. The Books and Authors are secondary. To sort the Authors, I think you might be able to use the Set c

MS Access Datasource Possible?

2012-03-01 Thread skitle
Is it possible to connect to an MS Access database file as a datasource? I have checked out the Datasources plugin, and search most everywhere, and all references are pretty old and outdated. Anybody have this working for them? Thanks LaNcE -- Our newest site for the community: CakePHP Video T

POSTing to CakePHP from iOS (CakePHP 1.3)

2012-03-01 Thread 8vius
I've set up my RESTful web services and I'm trying to POST to my add method, how would the URL be to do this? I haven't been successful with POST, GET works fine. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http:

CakePHP 2.1 pagination routing (Help)

2012-03-01 Thread Salines
Hello, i need small help my cakephp 1.3.x site has correct url, like first page : http://detas.ba/satovi second page :http://detas.ba/satovi/2 ... with this routing codes Router::connect('/satovi/:page', array('controller'=>'products','action'=>'index')); after upgrading on the c

How to make the routes working with CakePHP in a subdirectory

2012-03-01 Thread Optik Fluffel
I have a little Webpage set up with a little CakePHP Webapp in it. The CakePHP stuff is in a subdirectory and so I got my .htaccess like this: RewriteEngine on RewriteRule ^test/subdirectory$ subdirectory/app/webroot RewriteRule ^test/subdirectory/(.*)$ subdirectory/app/we

Configure::write('App.baseUrl', env('SCRIPT_NAME')); missing controller

2012-03-01 Thread ukkpower
I have had to move my app to a server that uses zeus server. Whe I add the rewrite.script I get the access to the controllers but no css or js. I then uncommented the line Configure::write('App.baseUrl', env('SCRIPT_NAME')); in the core.php. I now get all the css and js but I get missing controll

Re: Need Help

2012-03-01 Thread jeremyharris
Your first resource should be the book[1]. You can also look at screencasts[2] and sign up for classes that will teach you the basics and get you going[3]. 1: http://book.cakephp.org 2: http://tv.cakephp.org/ 3: http://training.cakephp.org/ On Thursday, March 1, 2012 5:44:07 AM UTC-8, mohit w

Re: i've issues while using ajax in form submission

2012-03-01 Thread jeremyharris
Sounds like you're creating the form wrong in the view. What's the code in the view for your form? On Thursday, March 1, 2012 2:48:55 AM UTC-8, boobalan wrote: > > i am creating a blog application > i've some issues while using ajax in forms > > Warning (2): array_merge() [function.array-merge]

Need Help

2012-03-01 Thread mohit kumar
Hi Experts, Greetings!! Just need some help on good documents and video tutorials on Cake PHP. I am working with WordPress, for last 2 years.I want to learn cake php.I have searched internet and found many good tutorials. But it would be very helpful if you can send me some good links for Cake PH

support regarding cakephp 2.0 media plugin

2012-03-01 Thread DHANUSH R L
hi, Im a beginner and asked to do a form for batch upload of images and so I'm trying hard to understand the concept, i found few online and all were pretty old, means they were cakephp 1.3. I would be very thankful, if any one could help me with a detailed tutorial on batch upload of images. Reg

Encoding in __()

2012-03-01 Thread luca capra
Hi all, after upgrading to 2.1 I get some character (eg à ) returned from __( ) not in utf-8 (a nice square with a question mark in it). The relative *.po is utf-8, the html meta are right, the Core.Encoding config too.. Has changed something in 2.1 which could cause this ? Thanks in advanc

Re: an add page redirects to other page holding some parameters

2012-03-01 Thread Stephen
Quick reply! Got a meeting in 2 minutes... Process Person::add() as normal, once you call $this->Person->save($this->data); call $id = $this->Person->id; (The id of the last inserted row) Then do $this->redirect(array('controller' => 'subordinates', 'action' => 'add', $id)); (/subordinates/add/)

an add page redirects to other page holding some parameters

2012-03-01 Thread driss bounouar
I have two models person and subordinate and I have the relationship person has many subordinate what I want to do is that when I add the person when I click the submit button I will be redirected to add subordinate to that exact person I don't want a combox to choose between people ?? How co

Re: MVC design for shopping cart

2012-03-01 Thread Stephen
Also if you've got models setup for taxes and prices etc, I would assume there would be some relation with the Product model? If not... to speed things up a little, I would write a few model functions with some joined queries gathering all the data you need (i.e. $this->Product->findTaxCode($produ

Re: MVC design for shopping cart

2012-03-01 Thread Stephen
Why break the MVC system by creating a component where it isn't needed? Your cart functionality is 100% directly related to your Product model, place a method in that controller, just create a custom route if you want to change the URL. If you want to access the cart information from views, elemen

Re: MD5 file warning with Media Plugin

2012-03-01 Thread AD7six
On Thursday, 1 March 2012 11:07:34 UTC+1, Nif wrote: > > Hi there, > > I am trying to use the Media plugin for Cake 2.0 (https://github.com/ > bmcclure/CakePHP-Media-Plugin) > > and all appears to be working except > that I am getting the war

i've issues while using ajax in form submission

2012-03-01 Thread boobalan
i am creating a blog application i've some issues while using ajax in forms Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array [CORE\cake\libs\view\helpers\form.php, line 175] Notice (8): Undefined index: type [CORE\cake\libs\view\helpers \form.php, line 204] Notice (

Re: Best way to work with MySQL table relations (referential integrity)

2012-03-01 Thread phpMagpie
It appears I have imagined a problem where there was none. I have just tested creating and deleting a Trainer: User hasOne Trainer dependent => true InnoDB relation in trainers table with delete = RESTRICT Trainer hasMany CourseTrainer dependent => true InnoDB relation in course_trainer

MD5 file warning with Media Plugin

2012-03-01 Thread Nif
Hi there, I am trying to use the Media plugin for Cake 2.0 (https://github.com/ bmcclure/CakePHP-Media-Plugin) and all appears to be working except that I am getting the warning below on 2 of my view pages. I have searched high and low for answers, but am not finding anything. Warning (2): md5_fi

Re: isAuthorized redirect

2012-03-01 Thread phpMagpie
If isAuthorized returns false then the user should be redirected to the value returned by $this->Auth->redirect(). If that has no value (i.e. you've typed the address you're trying to access direct into the address bar) then it will redirect to '/' HTH, Paul -- Our newest site for the commun