Re: Sending a 404 header from the controller

2014-07-14 Thread Alex Bovey
On Fri, Jul 11, 2014 at 2:31 PM, Alex Bovey wrote: > > Hello all, > > I would like one of my controller methods to be able to send a 404 Not Found > header, but still render the view as normal. I've tried both of the > following at the beginning of my controller me

Re: Sending a 404 header from the controller

2014-07-11 Thread Alex Bovey
Thank you Leandro - I can't see where that outputs a 404 header though? Alex On Fri, Jul 11, 2014 at 3:09 PM, Leandro Machado Pereira < llperei...@gmail.com> wrote: > You should see this http://pastebin.com/zNB6SFg7 > > > 2014-07-11 10:31 GMT-03:00 Alex Bovey : > &

Sending a 404 header from the controller

2014-07-11 Thread Alex Bovey
HTTP/1.1 404 Not Found'); $this->response->httpCodes(404); Please note that I don't just want to do a custom 404 page - I still want to render the page using the current controller method. I am using Cake 2.4. Any help would be much appreciated. Thanks all, Alex -- Alex

Ejemplo de proyecto en cakephp

2013-09-04 Thread Alex Millán
Amigos: Alguien tiene un ejemplo de un login en cakephp y mysql que me haga el favor y me lo pase. Si tiene el ejemplo del blog para descargarlo también le agradeceria muchas gracias -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- Yo

Re: Form helper not adding "required" class to fields from deep model associations

2013-05-20 Thread Alex Bovey
Anyone? :) On Fri, May 17, 2013 at 4:04 PM, Alex Bovey wrote: > Hi all, > > In my Cake 2.3 app I'm using saveAll($this->request->data, array('deep' => > true)) to save deep model associations and the validation is working fine. > My input fields for any

Form helper not adding "required" class to fields from deep model associations

2013-05-17 Thread Alex Bovey
this field correctly has the "required" class :-) echo $this->Form->input('MyRelatedModel.required_field); // this field also has the "required" class :-) echo $this->Form->input('MyRelatedModel.AnotherModel.required_field); // this field does NOT have the &quo

Using Tree behavior with Postgres database

2013-05-10 Thread Alex Bovey
e function ^ In statement: SELECT MAX("Page"."rght") AS "rght" FROM "public"."pages" AS "Page" WHERE 1 = 1 ORDER BY "Page"."lft" ASC LIMIT 1 Anyone encountered this before or know of a sol

Re: Using Auth component with two different models

2013-04-24 Thread Alex Bovey
On Tue, Apr 23, 2013 at 7:26 PM, André Luis wrote: > > I suggest to use a single model and separate the users using groups... Thanks André - best plan I think. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message b

Re: Using Auth component with two different models

2013-04-23 Thread Alex Bovey
On Fri, Apr 19, 2013 at 4:39 PM, Alex Bovey wrote: > Hi all, > > What's the best technique to use if I have two separate areas of my site and > I want the Auth component to use two separate models to log in to those > areas? > > I have tried setting the $this

Using Auth component with two different models

2013-04-19 Thread Alex Bovey
doesn't seem to have any effect... Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 a...@bovey.co.uk | t 0844 567 8995 | m 07828 649386 | f 0870 288 9533 PHP | CakePHP | MySQL | jQuery | HTM

Re: Content moderation in CakePHP

2013-04-11 Thread Alex Bovey
much for your reply and advice also - revision behavior looks like it might do the best job so I'll take a closer look at that now. Thanks for the suggestion. Alex -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: Content moderation in CakePHP

2013-04-11 Thread Alex Bovey
ou can handle separated the moderated and unmoderated entries, > without checkin any boolean field. > > Hi Vinícius, Thanks very much for your reply and advice - sounds pretty sensible, and actually sounds pretty similar to the revision behavior that Christian suggested. Thanks fo

Content moderation in CakePHP

2013-04-10 Thread Alex Bovey
Post only becomes a ModeratedPost when it has been approved. 2) Store both Posts and ModeratedPosts in the same table with a 'moderated' boolean. I would still need some way of linking records together so that a Post belongsTo a ModeratedPost. Any thoughts welcome! Thanks in advance,

User login after register does not work

2012-11-23 Thread alex sandor
Hello, in my opinion website usability wants me to log in my users right after registration. It makes no sense to force them to reenter their log in information after they already filled out the registration form successfully. public function signup() { if ($this->request->is('post')) {

Re: Place a verification file http://example.com/verificationfile.html

2012-11-08 Thread Alex Bovey
m. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 a...@bovey.co.uk | t 0844 567 8995 | m 07828 649386 | f 0870 288 9533 PHP |

Re: Copy branch of Tree to another parent

2012-10-24 Thread Alex Bovey
On Wed, Oct 24, 2012 at 2:46 PM, bs28723 wrote: > I guess nobody know of an easy way to do this? > nobody has ever written a routine to do this? > Last hope before I dive into this > Thanks > Bill Try this Bill - I ain't saying it's elegant :) http://pastebin.com

Re: Copy branch of Tree to another parent

2012-10-24 Thread Alex Bovey
ugly. I know what you mean though - it seems to be a pretty common requirement so I'm surprised there isn't a more obvious way of doing it. I guess using find('threaded') and unsetting the parent_ids didn't work? Thanks, Alex -- Alex Bovey Web Developer | Alex B

Re: Change created/modified to unix time

2012-07-22 Thread Alex
> > Where are you doing these searches? If in the database I don't think > there would be much of a performance hit. > The searches are within the database yes, the problem is that "not much of a performance hit" isn't ideal when carrying out a large number of searches. > > You could do a c

Change created/modified to unix time

2012-07-22 Thread Alex
Hi, I currently make use of the created and modified fields throughout my application but being datetime fields, performing searches/comparisons isn't as fast as they could be if unix timestamps were used. I realise there may be the excuse that formatting would be required as unix timestamps a

Geocoding

2012-05-23 Thread Alex Bovey
in-cakephp As that was 5 years ago I guess there might be a more evolved solution now anyway? THanks, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 a...@bovey.co.uk | t 0844 567 8995 | m 07828 649386 | f 087

Using oAuth 2.0

2012-04-11 Thread Alex s
Hello, I have to authenticate and access data from a webservice using oAuth 2.0. Have anyone some examples to do that using CakePHP ? Thanks Alex -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Ampersands in URLs with CakePHP and Apache mod_rewrite

2012-03-09 Thread Alex Bovey
nd they won't upgrade to that. I also tried the NE (no escape) rule but that didn't seem to make any difference. Anyone experienced the same problem and found a good solution? Thanks, Alex -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out t

Re: DebugKit Toolbar - core processing (derived)

2011-12-30 Thread Alex Bovey
Anyone? :) On Thu, Dec 29, 2011 at 3:41 PM, Alex Bovey wrote: > Hi all, > > I've just moved a site (at the client's request) from my own VPS where it > was performing very well to some cheap shared hosting (123-reg.co.uk) and > surprise surprise it's pretty slow.

DebugKit Toolbar - core processing (derived)

2011-12-29 Thread Alex Bovey
ing (derived) on the timeline - it's taking up to 40 seconds! Any pointers for where to start looking for the cause of this? Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 -- Our newest site for

Re: Best image resize and crop helper

2011-12-02 Thread Alex Bovey
gt; $size thumbnail for that file is here: "$domain/$path.$size.$ext"? > That's logical - thanks Andy. -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 -- Our newest site for the community: CakePHP Vid

Re: Best image resize and crop helper

2011-12-02 Thread Alex Bovey
a minor adjustment to the image size. What happens when you find you need a different size for whatever reason? Do you simply have a function that lets you regenerate all images to a certain size, presuming you keep the originally uploaded image? Thanks, Alex -- Alex Bovey Web Developer | Al

Best image resize and crop helper

2011-12-01 Thread Alex Bovey
Hi all, What's everyone's favourite method (helper or otherwise) or resizing and cropping images? Thanks, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 -- Our newest site for the community:

Infinite re-direct during login

2011-11-19 Thread Alex
ny redirects. (...)" BTW, the server runs PHP 5.2.13. Any ideas on what might have caused this problem outside code? What other information can I give to help you help me? Thanks, Alex -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: DebugKit Toolbar timeline isn't adding up

2011-10-31 Thread Alex Bovey
On Sun, Oct 30, 2011 at 4:59 PM, AD7six wrote: > > It doesn't necessarily have to add up. Timers have a start and an end > time - and apparently a lot happened inbetween your controller action > and the render process. Thanks Andy - it's a good point. > > Any ideas where this may be coming from?

DebugKit Toolbar timeline isn't adding up

2011-10-30 Thread Alex Bovey
r this, as if some phantom code is at work. Equally the peak memory usage is way higher than the breakdown below it shows. Any ideas where this may be coming from? This is v1.2.7. Thanks all, Alex -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o

DebugKit Toolbar timeline isn't adding up

2011-10-30 Thread Alex Bovey
r this, as if some phantom code is at work. Equally the peak memory usage is way higher than the breakdown below it shows. Any ideas where this may be coming from? This is v1.2.7. Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wal

How use model on cake shell

2011-06-06 Thread Alex
Hi, i newbie on cakephp. I want to develop a shell aplication, but when i try to use model no error shows and application don't execute. My code out('First line to show'); $results = $this->Pais->find('all'); $this->out('End execution'); } } ?> I try to use Ap

Re: Memory Leak in Model::Save()

2011-04-08 Thread Alex Ciobanu
On 4/8/2011 3:18 PM, ProFire wrote: Is there a way to clear the memory? Does anybody also experience a somewhat similar issue? where by each Model::Save results in an increase of memory? You can't control memory in PHP. I'd try different combos of max_execution_time[1] and memory_limit[2]. Howe

Re: Memory Leak in Model::Save()

2011-04-07 Thread Alex Ciobanu
On 4/8/2011 7:47 AM, keymaster wrote: I think Miles is pointing out there is a bug in php interpreter which can lose memory under certain circumstances, and through our coding we can trigger that bug. So, yes, it appears possible that memory can leak, and that by changing our code, we can sto

Re: Memory Leak in Model::Save()

2011-04-07 Thread Alex Ciobanu
On 4/7/2011 8:37 PM, Miles J wrote: @Alex - Yes you can have memory leaks in PHP. http://www.google.com/search?q=memory+leaks+in+php&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Miles, please point me to calloc/malloc PHP equivalent so I can tes

Re: Memory Leak in Model::Save()

2011-04-07 Thread Alex Ciobanu
On 4/4/2011 6:38 PM, ProFire wrote: I was very careful not to have any memory leak. You don't control memory in PHP, you can't have memory leaks. http://goo.gl/nm6OZ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site htt

Re: Changing Model Conditions in another controller

2011-02-24 Thread Alex Ciobanu
On 2/24/2011 10:40 AM, heohni wrote: When I call $members = $this->Member->find('all'); Cake performs 2 statements. 1. to get all member results 2. to get all subscription results Use the Containable behavior and pass conditions to the related model. http://book.cakephp.org/view/1323/Containab

Re: model relation problem

2011-02-24 Thread Alex Ciobanu
On 2/24/2011 6:54 PM, pang wrote: The problem is `Friend`.`friend_id` is left joined with `Friend`.`id`. How to solve this problem ? Give it a different alias. E.g.: public $belongsTo = array( 'MyFriend' => array('className' => 'Friend', 'foreignKey' => 'fr

Re: Cakephp 1.3 and Firebird

2011-01-26 Thread Alex Ciobanu
On 1/26/2011 11:43 PM, rc wrote: Hi Can you tell me where I can find dbo_firebird.php for Cake 1.3. The driver is mentioned in config/database.php, but the file isn't in the distribution. https://github.com/cakephp/datasources/blob/master/models/datasources/dbo/dbo_firebird.php -- Our newest

Re: Join Tables between db

2011-01-26 Thread Alex Ciobanu
On 1/26/2011 3:08 AM, Dave Maharaj wrote: I have a site with 2 databases (same server) 1.Being resources_db (data that never changes, Country, States, various selects and options to select from throughout the site) 2.default_db users, profiles, things that can be changed, edited by users. N

Re: Get Random Articles.

2011-01-06 Thread Alex Ciobanu
max = select max(field) from table select * from table WHERE field>= ${rand(1, max)} ORDER BY field ASC LIMIT 1 OR select * from table ORDER BY (field>= ${rand(1, max)}) DESC, field ASC LIMIT 1 If you're use case is more demanding/complex than that here's a behavior which does the above using

Re: Fck editor in cake php... Help needed

2011-01-06 Thread Alex Ciobanu
On 1/6/2011 3:16 PM, Test_deepak wrote: I cannot add fck editor to cake php. while i am adding to it some warning messages are given in my page. please help me. Here you go! http://goo.gl/840jo Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP relate

Re: Get Random Articles.

2011-01-06 Thread Alex Ciobanu
On 1/6/2011 9:26 PM, Nicolas400 wrote: Hi, I want a function that return me a Random Article from my Model. I guess all I need is the Find Method, but how do I know how this random number will match an existing ID ?? I'm really stuck. because if I had 3 articles (1,2,3) i want to get a random

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 2:41 PM, Jeremy Burns | Class Outfit wrote: Yup - I know, but I have multiple prefixes; so if I am diverted from, say, /managers/shops/edit I would need to have 'managers' => false (and therefore the 'admin' => false is irrelevant). In my core I have: Configure::write('Routing

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 2:18 PM, Jeremy Burns | Class Outfit wrote: I did consider that, but I'm looking for something fairly simple to both implement and administer (I don't want to have to make loads of changes/create new objects when I add a new prefix, for example). Example from manual seems to do t

Re: Auth loginAction and multiple prefixes

2010-12-03 Thread Alex Ciobanu
On 12/3/2010 1:46 PM, Jeremy Burns wrote: Not sure I've seen a definitive answer for this... I'm on 1.3.6, and have multiple prefixes. I want to always redirect to /users/login when authentication is required. I was hoping this would work: Have you considered teknoid's method [1]? The downside

Login from external service

2010-11-30 Thread Alex Schlieck
and password from the URL, and send it to the Auth component. It fills what I send in to the fields, but it doesn't actually log me in. Thank you for your help Alex Here is what I have so far: Url: localhost/server/users/login/username:name/password:pass Controller: Auth->allow('

How to identify functions causing apache CPU usage

2010-10-07 Thread Alex Bovey
ips for tracing what is running so slowly? Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related quest

Re: Admin interface templates / themes for CakePHP

2010-09-27 Thread Alex Bovey
y easy to integrate and useful depending on how much ajax you are > using. Thanks Mike - gone down the jQuery UI route also - cheers for that tip. Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 Check out the n

Admin interface templates / themes for CakePHP

2010-09-23 Thread Alex Bovey
anels-for-your-web-applications/ Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in England & Wales no. 6471391 | VAT no. 934 8959 65 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Why are PHP notices still displayed when debug level is 0?

2010-09-21 Thread Alex Bovey
Hi all, I'm sure a few versions ago, PHP notices were never displayed when in production mode (debug 0) but now they are being shown. What's the best way of turning off notices when in production mode? Thanks all, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Reg

Xampp from Apache friends

2010-08-23 Thread alex
king changes to the apache http config files. Has anybody here had experience of & found a solution to this problem? Thanks Alex 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 subscribe

Re: contain param ignored

2010-07-23 Thread Alex Payne
You probably just need to set the model to be containable. i.e. $this->ModelName->Behaviors->attach('Containable'); var $paginate = array( 'limit' => 10, 'page' => 1, 'order'=>array('Site.sort_order' => 'ASC'), 'fields' => array('*'), 'contain' => array(

Re: Too many SQL queries!!

2010-07-13 Thread Alex Bovey
are more optimised than the version you are using. > > mikek > > Cheers Mike - I will give that a go in the first instance - might even go to 1.3. Interesting what you say about custom queries. I definitely need to add some more caching but I thought there might be a quick fix reducin

Re: Too many SQL queries!!

2010-07-13 Thread Alex Bovey
tfit < jeremybu...@classoutfit.com> wrote: > Out of interest, what is your debug level? > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 13 Jul 2010, at 10:57, Alex Bovey wrote: > > Hi Nick, > > Thanks

Re: Too many SQL queries!!

2010-07-13 Thread Alex Bovey
lds' but surely that's not going to mean the difference between what should be 2 queries at most, and the thousands I'm ending up with... Thanks, Alex On Tue, Jul 13, 2010 at 9:59 AM, nurvzy wrote: > Use a mixture of: > > fields option key (so you're not retrieving da

Too many SQL queries!!

2010-07-13 Thread Alex Bovey
uery for every single Enquiry to fetch the User for that Enquiry. When I have more complex model relations I'm ending up with over 10,000 SQL queries. What am I doing wrong?! Thanks, Alex Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related que

Error with Jshelper in Simpletest test case

2010-07-07 Thread Alex Tsui
I'm writing a Simpletest test case for a helper class that uses Js helper, which has the value method for turning arbitrary PHP objects into JSON. I've done the setup: import the Js helper and construct it before using it. This is the error I'm getting: Fatal error: Call to a member function value

Email Component - Double Send

2010-06-18 Thread alex
$this->Email->from = 'Alex '; $this->Email->to = $mail['mails']['mail']; $this->Email->delivery = 'smtp'; $this->Email->

Re: Release: CakePHP 1.3.1

2010-05-30 Thread Alex Seim
According to this: http://cakephp.lighthouseapp.com/projects/42648/tickets/769-unserialize-error-cakephp-131-unusable-on-windows You have to edit file.php in order to fix it (which in not desirable too) On 30 Μάϊος, 14:41, Elte Hupkes wrote: > I get the exact same unserialize errors on a project

WorldPay component

2010-04-22 Thread Alex Bovey
Hi all, Does anyone know of a WorldPay component available for CakePHP? All I've really found is bakepay which doesn't seem to be complete: http://cakeforge.org/projects/bakepay/ Thanks all, Alex Check out the new CakePHP Questions site http://cakeqs.org and help others with the

Using a controller in a shell task

2010-04-08 Thread Alex P
Hi guys, Can anyone help me out with this. I have a function that I use within say a messages controller, but I also want to call this from a cron shell task. I can get to it by doing various App::imports but then the model - >Behaviors->attach doesn't work. Can anyone provide a definitive soluti

increase performance with often used queries

2010-04-02 Thread alex bailey
ike $this->Car->findById(5); very often creating maybe 5-6 times the same query on 1 page! Is there a way to reduce this somehow? Like fetching the model data once and use it for all controllers or cache it somewhere for that 1 user? I really appreciate any help. Regards Alex Check out

Re: repeatedly call controller action through ajax

2010-03-24 Thread alex bailey
´I think I've got it to work by doing as you said with a few compromises here and there : ) Big thanks I really appreciate your help. Regards Alex On 24 Mrz., 11:29, John Andersen wrote: > Ok, if your page is loading normaly, then pass the information to the > view/layout and in

Re: repeatedly call controller action through ajax

2010-03-24 Thread alex bailey
only want a action which reacts to specified events (like a change in the database) to be executed over and over again and "do something" if that certain event happens. Regards Alex On 24 Mrz., 08:09, John Andersen wrote: > I am not sure how your page loading is working - with ajax

repeatedly call controller action through ajax

2010-03-23 Thread alex bailey
handle this whole situation? Big thanks in advance. Regards Alex 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 Groups "CakePHP" group. To post to t

Re: Tips on performance monitoring / profiling

2010-03-19 Thread Alex Bovey
ution based around Mile J's > http://www.milesj.me/blog/read/34/Cacheing-Each-Query-Individually. > It's pretty easy to cache stuff though, it's knowing when to clear > them out that's the tricky bit. Cheers JB - great help as always! -- Alex Bovey Web Developer | Ale

Re: Tips on performance monitoring / profiling

2010-03-19 Thread Alex Bovey
On Wed, Mar 17, 2010 at 6:09 PM, Christian Leskowsky wrote: > > You might want to give YSlow / Page Speed a try too. They often turn up an > area or 2 worth looking into. Thanks Christian - good advice too. -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Registered in Englan

Re: Tips on performance monitoring / profiling

2010-03-17 Thread Alex Bovey
ould probably be making better use of caching. Whilst there is the core cache library which is great, do you use any kind of component in front of this to abstract it? Or is it a case of manually checking whether the cached element exists in your controller action and then if not fetching from the

Tips on performance monitoring / profiling

2010-03-17 Thread Alex Bovey
Hi all, Has anyone got any tips on performance monitoring and profiling a cake app? I'm using containable and number of queries doesn't look too bad but it's all running pretty slowly at the moment. Thanks, Alex -- Alex Bovey Web Developer | Alex Bovey Consultancy Ltd Regist

Auto create new entry in database wenn model is saved

2010-02-28 Thread alex bailey
there a way I can also create those 3 related tables for car when I save User and Car? Thanks in advance regards Alex 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

Re: Loop Issue Cakephp

2010-01-26 Thread alex
Yes I tried! it works!!... Thanks ! On 26 Gen, 18:05, John Andersen wrote: > Did you try to reset the email fields? > > I wanted to see that your index action didn't loop! > Enjoy, >    John > > On Jan 26, 5:05 pm, alex wrote: > > > > > I notice that re

Re: Loop Issue Cakephp

2010-01-26 Thread alex
iew/270/Class-Attributes-and-Variables#Sendi... > > Your final flash message invokes the action "index" in the current > controller. What is the content of that action? > Enjoy, >    John > > On Jan 26, 3:34 pm, alex wrote: > > > > > Hi, I'm t

Loop Issue Cakephp

2010-01-26 Thread alex
$this->Email->send(); } $this->flash(__('Email sent', true), array ('action'=>'index')); [/code] it works for one email ( without foreach($list as $info){...} ), but when i trying to send with this method I see this nex pi

Multiple Email with Cakephp component

2010-01-25 Thread alex
Hi... I have an issue about multiple send...my view call a function called simplesendmail: [code] function sendSimpleMail($id = null) { $list = $this->Content->query("SELECT * FROM mails WHERE sub = '1'"); $data = $this->Content->find($id);

controller problem

2009-10-20 Thread alex
layout = "club_free_text_layout"; } } ?> $Route->connect('/free_text',array('controller'=> 'freetext','action' => 'index')); please can anyone tell me why when i visit the /free_text i get Not found The requested address index was not found on this server. and when i visit fre

Re: Preserving get variables using paginator

2009-10-19 Thread Alex Seim
Perfect! Thanks! On 19 Οκτ, 15:53, grigri wrote: > Add this to the top of the relevant view: > >  $q = $_GET; unset($q['url']); >  if (!empty($q)) { >          $paginator->options(array('url'=>array('?' => $q))); >  } > > On Oc

Preserving get variables using paginator

2009-10-19 Thread Alex Seim
I would like to know if there is a way to preserve variables passed via form type='get' along with using the pagination. Currently, using the pagination helper, when sorting/browsing, get variables disappear. --~--~-~--~~~---~--~~ You received this message because y

Re: cake 1.3 var $scaffold redirect

2009-09-02 Thread Alex Ciminian
I've got it working by overwriting the scaffold controller in the cake library with the controller from version 1.2.4. I did a diff on the two files and I noticed that the main difference is the use of $_validSession in the newer file. I'm new to CakePHP (this is my first project), so I don't know

Re: cake 1.3 var $scaffold redirect

2009-09-02 Thread Alex Ciminian
I'm having the same issue. I hope to solve it today; if I do, I'll post here. On Aug 31, 5:09 am, Andras Kende wrote: > Hello, > > is it possible that in cake 1.3 using var $scaffoldwont redirect on   > save or edit ? > I just get a blank page. > > class ProductsController extends AppController

Re: base path route don't work

2009-05-14 Thread Alex
I have the same problem. I'm not very familiar with mod_rewrite, cake or apache in general so it's a bit hard to figure out. I can access my website at http://localhost/site1/ but can't find how to change settings to http://localhost. When I open http://localhost it shows an empty page instead of

MVC Design Question

2009-03-11 Thread Alex Jeffery
user is all in one spot. So if I have many controllers that need to register a new user I can just use the same code. Is this on the right track? Thanks, Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Debug Comment Data in JSON Results

2009-03-03 Thread Alex
Ahh, I see. Didn't think to write the debug configuration based on the request. Annoying though that it appends that right? What practical purpose could it serve? Thank you, Alex On Mar 3, 11:57 am, bcreeve wrote: > What I do is parse .json extensions and return the JSON with >

Debug Comment Data in JSON Results

2009-03-03 Thread Alex
the JSON data from being evaluated. Is there anyway to keep a non-zero debug level and keep cake from appending this value? Thanks, - Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

Re: FileMaker database "driver"

2009-02-09 Thread Alex
Hi bdb, I'm highly interested in your work in this area. I was just thinking of starting this project myself. Can you tell me if you've made any progress since April 2006? - Alex On Jan 13, 12:10 am, Louie Miranda wrote: > Hi! Very interested. Where could we see the component for

Strange problem with App:Import of controller class

2008-11-22 Thread Alex, the Marrch Ca'at
I have two controller classes: class PagesController extends AppController { (...) function home() { App::import('Controller', 'NewsPosts'); $controller = new NewsPostsController(); $this->set('NewsGrouped', $controller->_getNewsGrouped()); } (...) } and class NewsP

Reporting solution for CakePHP

2008-08-31 Thread Alex Seim
Hello, I would like to know if anyone has any reporting solution to suggest that works well with cake (like Crystal Reports or something) thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To pos

Re: Findall on a belong b belong c.name='fred'

2008-06-09 Thread Alex Seim
Have you found a clear answer about this? On 18 Απρ, 04:08, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have 3 models: > A belongs to B > B belongs to C > > I want tofindAllA where C.name='fred'. > > I had assumed that cake would justleft jointhe 3 tables and c.name > would be accessible i

session reset issues

2008-06-03 Thread Alex
are some inexpensive isp's with cakephp friendly settings? -Alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Re: Saving NOW() in model

2008-05-21 Thread Alex Ciobanu
Zifnab wrote: > I'm trying to figure out how to implicitly make a mysql NOW() call > when doing a model save...here's an example of the code: > > $aUserData = array( > 'User' => array( > 'id' => 4, > 'last_login' => 'NOW()' > ) > ); > > $this->User->save( $aUserData, fals

How to handle request not connected to a model ?

2008-04-01 Thread Alex Devry
to CakePHP. The problem is that I'm not sure it is correct, or in accordance with the CakePHP /MVC philiosophy. Have you already met this kind of problems ? How have you solved it ? Is there any white book or best practices concerning this

Sorting related object according to their related objects

2007-11-11 Thread Alex
mment" relationship with a limit and an order by his sub-object "User.popular"? Bye, ALex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

GoogleBot gets a 404 on site with out index.php

2007-09-29 Thread Alex Jeffery
sitemap to work :) Thanks, Alex --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: How to make session expire after browser close?

2007-07-16 Thread Alex
On 4 Jul., 11:57, SMARTEGURU <[EMAIL PROTECTED]> wrote: > define('CAKE_SESSION_SAVE', 'database'); > define('CAKE_SECURITY','low'); > define('CAKE_SESSION_TIMEOUT', '12'); CAKE_SECURITY = low causes the session cookie to be saved for 78894 seconds - even if your browser is being closed, the

Performance Time (debug variable)

2007-05-02 Thread Alex
time separately. Greetings, Alex --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: HTML-considering Truncate()-Function

2007-03-28 Thread Alex
I submitted this function also as a possible enhancement of the default truncate function in the TextHelper. I also wrote a test case for this function https://trac.cakephp.org/ticket/2306 --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Email Component and UTF8 Subject

2007-03-26 Thread Alex
I opened a ticket for this topic: https://trac.cakephp.org/ticket/2298#preview --~--~-~--~~~---~--~~ 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@googlegroups.com To un

Spam-protected, accessible forms?

2007-03-26 Thread Alex
function which maps the posted data back. Greetings, Alex --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from th

Re: HTML-considering Truncate()-Function

2007-03-22 Thread Alex
Hi gwoo, Cool to hear. Do you mean I should submit the whole function to trac.cakephp.org to suggest it for 1.2 or should the users submit bugs in this function there? I don't know how the process for this works :-) Thanks, Alex --~--~-~--~~~---~--~

Re: HTML-considering Truncate()-Function

2007-03-21 Thread Alex
I added this solution to CakeForge: http://cakeforge.org/snippet/detail.php?type=snippet&id=174 --~--~-~--~~~---~--~~ 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@googl

  1   2   >