Re: CakePHP 2.3.0-RC1 and 2.2.4 released

2012-12-04 Thread Andras Kende
Just replace your existing (2.2.3) /lib/Cake with the 2.2.4 /lib/Cake should work fine... Andras Kende On Dec 3, 2012, at 9:57 PM, Novrian YF andi.novr...@gmail.com wrote: Hi Jose I'm new in Cake. I've exploring with it in about one month. I've use 2.2.3 and I wanna upgrade to 2.2.4.

Re: links outside root directory

2012-12-04 Thread Andras Kende
Seems your have url as www.domain.com instead of http://www.domains.com; in your database….. Its ugly, but you could try: ?php echo $html-link($dba['Dba']['name'], 'http://' . $dba['Dba']['url']) ? might want to prefix your urls with http://; in the database Andras Kende http://www.kende.com

Plugin under its own (sub-)domain?

2012-12-04 Thread Tobias Schlemmer
Hello everyone, I have my app up and running and it is accessible via www.mydomain.com In addition I would like to add a RESTful api which should be available from its own subdomain api.mydomain.com So I thought I create a Plugin/Api and have all the Controllers/Actions/Authorization/Layout

Using .replaceWith() or .attr() in JsHelper::link ?

2012-12-04 Thread Salines
Hi, I have a probably trivial question. Can I put in cakephp JsHelper :: link options other jQuery method, for example. replaceWith ()? Clarification, on the admin page I have more links (twitter bootstrap buttons) on each individual record, one of the buttons should change when clicked. Eg I

Re: CakePHP 2.3.0-RC1 and 2.2.4 released

2012-12-04 Thread Novrian YF
Thanks Andreas :D -- 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 post to this group, send email to cake-php@googlegroups.com. To unsubscribe

Re: setting custom error messages for validators in all my projects

2012-12-04 Thread vitor gomes
Hi crickt, thanks for your answer, it give me an idea about what I could do. If someone else is looking for how to set a custom message for default cake validators in all models of the project, take a look at my code. class AppModel extends Model { private $customValidationMessages =

Re: Using .replaceWith() or .attr() in JsHelper::link ?

2012-12-04 Thread Salines
*I solved.* 1. Use html helper for creating links 2. jshelper for creating js code, use JsHelper :: get, JsHelper :: event, and JsHelper :: Request -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this

Re: links outside root directory

2012-12-04 Thread Chris
thanks Andras,... it solved,... I forgot to put slashes '//' in URL while creating or editing dba,... lol On Tuesday, December 4, 2012 12:21:54 AM UTC-8, Andras Kende wrote: Seems your have url as www.domain.com instead of http://www.domains.com in your database….. Its ugly, but you

Re: links outside root directory

2012-12-04 Thread Chris
thanks angelxmoreno,... it solved,... I forgot to put slashes '//' in URL while creating or editing dba,... lol On Monday, December 3, 2012 8:36:01 PM UTC-8, angelxmoreno wrote: try a well formed url. http://www. http://www.hamayk.com/dbas/http:www.zippopeople.comsome_domain instead of

Re: Plugin under its own (sub-)domain?

2012-12-04 Thread lowpass
I think you would save yourself a lot of trouble by creating an api route: www.mydomain.com/api/... On Tue, Dec 4, 2012 at 3:52 AM, Tobias Schlemmer tobias.schlem...@gmail.com wrote: Hello everyone, I have my app up and running and it is accessible via www.mydomain.com In addition I would

Question about HtmlHelper::loadConfig()

2012-12-04 Thread Novrian YF
Hi all, According to the book, In order to override HtmlHelper Tags, we have to create html5_tags.php and put it in app/Config/html5_tags.php. The book also said you can then load the Config with $this-Html-loadConfig(); The question is, where I should put those code in order to make my custom

Re: Question about HtmlHelper::loadConfig()

2012-12-04 Thread glk
Hello Novrian, I'm really new here, so I may not be the best person to answer your question. But I'll try and maybe learn something along the way... I would try one of three ideas: 1. Try using your own specialized View/Helper/AppHelper.php Remember, don't alter the CakePHP AppHelper

Re: Question about HtmlHelper::loadConfig()

2012-12-04 Thread Reuben
I've never seen this before, but just has a quick check of the code base, and there it is. Awesome! When you define your usage of the HtmlHelper, you can set the config file to use there. CakePHP will include the HtmlHelper by default, but since you want to override it, you can do so in your

Process CakeEmail error log on Cakephp 2.2.3

2012-12-04 Thread dodo
How to process CakeEmail error on send email? I want to save error log to database. Error log always comes up so I can not proceed App::uses('CakeEmail', 'Network/Email'); $email = new CakeEmail('myConfig'); $email-emailFormat('html') -from('m...@myhost.com')

WdCalendar with cakephp

2012-12-04 Thread Jellibi Anas
Bonjour tout le monde quelqu'un peut m'aider pour intégré WdCalendar dans cakephp 2.x c'est urgent s'il vous plait j'ai besoin de cette fonctionnalité pour complété mon projet de fin d'étude -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP

links outside cakephp root directory

2012-12-04 Thread Chris
hi guys,... how can I link outside cakephp root directory,... I have a link that I want to take to another URL ($dba['Dba']['url'] sets in DB table): ?php echo $html-link($dba['Dba']['name'], $dba['Dba']['url']) ? but source show a href=dbas/http://some_url_from_table (with root:

Intégré php classique avec Cakephp

2012-12-04 Thread Jellibi Anas
comment peut on intégré une application php classique avec le framework cakephp -- 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 post to this

Returning Nested Set Items with Full Path

2012-12-04 Thread Larry Lutz
I'm working with Cake 2.2.4. I've learned perhaps more than I ever cared to about nested sets and really appreciate how well Cake manages them. Unfortunately, for all my research, I haven't been able to find a way to create an array from my Category model that will give the full path for each

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; But execute is trying to use function name as the $sql

2012-12-04 Thread glk
Hello all, thank you in advance for any help you may be able to provide. I'm using cakePHP 2.2.1 The following code works perfectly: class OptionsController extends AppController { var $uses = array('Option', 'ShooterEvent', 'ShooterOption'); public function calc($id) { $paid_entries

Re: Returning Nested Set Items with Full Path

2012-12-04 Thread Reuben
I think a combination of generateTreeList() and getPath() will get you there. generateTreeList() can be used to get you the initial array. Although I'm a bit leary of having the numeric id as the array key, since arrays with numeric keys tend to get orders numerically. Let's pretend that's

Re: Intégré php classique avec Cakephp

2012-12-04 Thread Reuben
Hi Jellibi You may wish to post the question in English, however, if Google Translate it doing it's job right, you want to integrate CakePHP with a regular PHP application. I've done this for some of my older projects that are too large to migrate in one go. The biggest hurdle is usually

Returning false in beforeDelete kills deleteAll?

2012-12-04 Thread Benjamin Allison
When deleting a record, I'm testing to see if a condition is true or false, and based on the result, procede with the deletion or return from it. The problem is that return false stops deleteAll completely. My understanding was that deleteAll would simply move along to the next record. Is this

Re: Question about HtmlHelper::loadConfig()

2012-12-04 Thread Novrian YF
@glk Thanks for the suggestion. Here's my thoughts over your idea: 1. I don't want to use Custom Helper because I'm afraid it could add more coding task in the project. LOL 2. When I put it controller callback, fatal errors occured. 3. I've using Theme in this project, so it could add more coding

Re: Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; But execute is trying to use function name as the $sql

2012-12-04 Thread Andras Kende
If inside the class ShooterOption class change : $this-ShooterOption-getSomething(1); to: $this-getSomething(1); also on your public function calc($id) { $paid_entries = $this-ShooterEvent-getPaidEntries($event_id); Where is $event_id coming from ? should it be just $id

Re: Question about HtmlHelper::loadConfig()

2012-12-04 Thread Reuben
Hi Novrian I looked to the source, in HtmlHelper::__construct(). CakePHP source is usually pretty easy to ready (although I have to think about the Dispatch Filters quite a bit). Glad it worked out for you. Regards Reuben Helms On Wednesday, 5 December 2012 13:27:45 UTC+10, Novrian YF