Re: CakePHP 3.0 - Confusion comes from

2015-04-17 Thread rchavik
On Thursday, April 2, 2015 at 8:31:37 PM UTC+7, Dave Edwards wrote: > > Hi Farid, > > I'm not decrying the value or usefulness of the documentation, or the huge > amount of work that has gone into creating it. > > As this is new functionality (ORM), it needs to be put right asap, > particularl

Re: Cake Schema

2015-02-12 Thread rchavik
On Friday, February 13, 2015 at 1:15:39 AM UTC+7, Marcelo Aymone wrote: > > Hi guys, Baked Schemas has no support on Cake 3? > What are other options to do the same? > It has been removed. See http://book.cakephp.org/3.0/en/appendices/3-0-migration-guide.html#schemashell-removed for alternat

Re: CakePHP 3: Logs being saved to webroot

2015-01-07 Thread rchavik
On Tuesday, January 6, 2015 11:43:14 PM UTC+7, Mark Speener wrote: > > I used composer to update a couple days ago on two sites and they both > nagged me that they couldn't save logs. After some fiddling with > permissions I figured out that they were saving to webroot which is > probably not

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 '='.

Re: display pure html page without layout

2014-11-25 Thread rchavik
On Tuesday, November 25, 2014 8:56:37 PM UTC+7, Frank Hassani wrote: > > tried it with staticpages as dir name, but same, it still loads the layout >> :O >> > > > Weird. Can you compare your .htaccess files and compare it with .hta

Re: display pure html page without layout

2014-11-24 Thread rchavik
On Tuesday, November 25, 2014 12:42:30 AM UTC+7, Frank Hassani wrote: > > Hi Steven, >> >> tried the full url path, but still not coming through without the layout. > Checking out what Mike is pointing out regarding the use of Croogo there. > I think your apache is running with MultiViews on,

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

Re: Looking for Help with Cakephp basics .. aka looking for a mentor

2013-12-18 Thread rchavik
awesome answer reuben +69 -- 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 emails from it, send

Re: Some talk about complex Applications with CakePHP

2013-11-10 Thread rchavik
On Sunday, November 10, 2013 9:51:26 PM UTC+7, Ighor Martins wrote: > > Hi there!. > > I'm a web developer from Portugal for like 8 years. I have been using > CakePHP for about 1 year and a half right now, and I'm pretty used to it, > with a good knowledge of the Framework. > > On the last mont

Re: FullCalendar plugin: Failed ARO/ACO node lookup

2013-06-02 Thread rchavik
On Sunday, 2 June 2013 16:36:29 UTC+7, mebibyte wrote: > > Hey > > I'm want to use the FullCalendar plugin and my website is working with ACL. > I'm have the aclPrep controller for creating the database structure of the > aro's and aco's. > But I have a problem with plugins, aro/aco lookup fails

Re: Cache Implement on ACL

2013-05-23 Thread rchavik
On Thursday, 23 May 2013 22:10:32 UTC+7, Yasir Arafat wrote: > > Hello, > I have used ACL in an application. It was fine when there were very few > functionality but day by day as the functionalities are increased the load > time is also increasing. I make sure about > > > >- *D**atabase i

Re: Migrate from 1.3 to 2x

2013-05-06 Thread rchavik
On Monday, 6 May 2013 19:47:15 UTC+7, steve van christie wrote: > > > 2.x, though, is easily upgradable using existing UpgradeShells and some >> minor manual tweaks >> > > how to do that? is it running in phpcake cli? > > best regards > Read the book. And it's cakephp. Not phpcake. -- Like

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-11 Thread rchavik
On Friday, 12 April 2013 03:31:24 UTC+7, Chris wrote: > > hi guys,... can anyone help please,... I know its not cake related (maybe > it does),... I apologize,... but may someone know the answer. > > title: 'Report Photo', > > Remove the trailing comma there -- Like Us on FaceBook https://ww

Re: The request has been black-holed

2013-04-02 Thread rchavik
s do not have have them by default. > > On Monday, April 1, 2013 6:41:44 AM UTC+1, rchavik wrote: >> >> >> >> On Thursday, March 28, 2013 4:57:38 PM UTC+7, b...@articad.cc wrote: >>> >>> Security features like this that cause issues with basic flow,

Re: The request has been black-holed

2013-03-31 Thread rchavik
On Thursday, March 28, 2013 4:57:38 PM UTC+7, b...@articad.cc wrote: > > Security features like this that cause issues with basic flow, should be > OFF by default. CakePHP is it's own worst enemy for leaving it in. > > Why do you think CakePHP turns SecurityComponent on by default? -- Like Us

Re: New CMS for CakePHP

2013-03-17 Thread rchavik
On Saturday, 16 March 2013 22:53:58 UTC+7, Pinguim Ch wrote: > > Hi, my names is Willy Chagas I'm from Brazil (sorry my english is bad) I > like to present the CakeCMS, this is Content Management System. > > *http://www.cakecms.com.br/* > > *Features* > >- ACL co

Re: croogo 1.5 securityError "csrf"

2013-03-10 Thread rchavik
On Saturday, March 9, 2013 5:26:44 PM UTC+7, Phan Tuan Kiet wrote: > > Hi all, > In croogo 1.5, I can't edit data. > When edit data have problem about securityError "csrf" > Help me to fix it. > > Thanks, all > Please do not cross post all over the internets. -- Like Us on FaceBook https://ww

Re: Question on using Miles Uploader Plugin

2013-03-03 Thread rchavik
On Monday, March 4, 2013 11:52:19 AM UTC+7, James Lukensow wrote: > > So here's a quick update: > > If in the form, I add the following, I'm noticing that the file is > actually uploaded, original, to my files directory. > > Form->create('Store', array('enctype' => > 'multipart/form-data')); ?>

Re: Question on using Miles Uploader Plugin

2013-03-03 Thread rchavik
On Monday, March 4, 2013 8:56:30 AM UTC+7, James Lukensow wrote: > > Not sure what you're trying to state here, the originals I'm testing with > are 1+ meg in size. If I try to open the files, the os says their invalid. Those 400-500 bytes probably contains error messages. -- Like Us on Fac

Re: Question on using Miles Uploader Plugin

2013-03-03 Thread rchavik
On Monday, 4 March 2013 03:04:16 UTC+7, James Lukensow wrote: > > I'm running into using Miles Uploader Plugin, found here. The issue is, > the photos are being created, but they're invalid, in all cases, they're > around 300 - 400 bytes. They do have the original file name, but that's > about

Re: Manipulating cake_sessions table

2013-02-18 Thread rchavik
On Monday, 18 February 2013 21:11:39 UTC+7, rchavik wrote: > > > > On Monday, 18 February 2013 17:28:27 UTC+7, Jeremy Burns wrote: >> >> I want to be sure that a user account is only in use by a single user at >> any one time. My thought was to add a user_

Re: Manipulating cake_sessions table

2013-02-18 Thread rchavik
On Monday, 18 February 2013 17:28:27 UTC+7, Jeremy Burns wrote: > > I want to be sure that a user account is only in use by a single user at > any one time. My thought was to add a user_id column to the cake_sessions > table, then on log in check to see if the current user's id is stored > aga

Re: Many-to-many ACL

2012-11-02 Thread rchavik
On Friday, 2 November 2012 06:57:13 UTC+7, Daniel Hdez wrote: > > Hello, hey i have the same problem, do you find a solution yet? greetings! > :) > If you read the thread, you'll find the solution in front of you :p -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter h

Re: HABTM Join Table Entries Disappearing

2012-10-11 Thread rchavik
On Thursday, October 11, 2012 10:53:07 PM UTC+7, keith...@classoutfit.com wrote: > > For 2.x sites you can also set 'unique' => 'keepExisting' to prevent the > save from deleting existing records: > Yes. However, you will still need to ensure that those data exist on the form (which might no

Re: Database name with period/dot results in SQL error

2012-09-21 Thread rchavik
On Thursday, 20 September 2012 18:30:01 UTC+7, Johan Klinge wrote: > > Hi, > > I'm trying to set up CakePHP 2.2.2 on a hosted site where I have only one > mysql database which has is named like "test.se". Using this database > name results in a SQL error when Cake tries to run the command: " S

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

Re: How to disable pluralize in cake 2.x

2012-08-28 Thread rchavik
On Tuesday, August 28, 2012 3:44:24 PM UTC+7, Novrian YF wrote: > > Hi all, > I'm Novrian from Indonesia. Just call me Nono (weird name, huh?). > > I assuming that cake uses their naming convention over the application. > And I'm getting confused to naming my application MVC because in my > langua

Re: Error to save in database

2012-08-13 Thread rchavik
On Monday, August 13, 2012 8:54:04 PM UTC+7, Lucas Simon Rodrigues Magalhaes wrote: > > I don't understand it. I define the correct names of Model Files and the > cake don't recognize the model User? How? you might need to tell AuthComponent which userModel to use. Typically, you'll tell Aut

Re: gebo admin template

2012-08-10 Thread rchavik
why is it running wordpress? :p On Saturday, August 11, 2012 7:03:24 AM UTC+7, MetZ wrote: > > > http://whatswhat.no/development/framework/cakephp-2/451-how-to-create-admin-panel-with-own-theme-in-cakephp > > Have fun :) > > kl. 15:17:32 UTC+2 torsdag 9. august 2012 skrev Rahul følgende: >> >> Hi,

Re: Controllers with same name

2012-07-31 Thread rchavik
On Tuesday, July 31, 2012 11:28:57 AM UTC+7, André Luis wrote: > > Well, i´ve disabled the Cache and it works fine now, it must be a issue... > latter i will submit as a issue. > > Em segunda-feira, 30 de julho de 2012 10h55min45s UTC-3, André Luis > escreveu: >> >> Hi all, i am in a big troubl

Re: [2.1] Problem with webservices

2012-07-29 Thread rchavik
On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote: > > Nothing change, I got the same error. :( > > Read the error message: Notice (8): Undefined index: person [CORE\Cake\View\JsonView.php, line 89 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.or

Re: ACL - how to set user permissions along with group permission

2012-07-27 Thread rchavik
On Friday, July 27, 2012 8:39:01 PM UTC+7, bigjimmi wrote: > > Hi, thanks for the reply. Basically I'm wanting to add access control > permissions to individual db rows? but I guess that would be the same as > allow access to /modelname/view/1? Struggling to find any info on this. Checkout ce

Re: Model conflicts

2012-07-26 Thread rchavik
On Thursday, July 26, 2012 9:37:17 PM UTC+7, André Luis wrote: > > I dont know if i am doing it wrong but i´ve tryed this: > > *$rep*=ClassRegistry::init('Representatives.Category'); > *$con*=ClassRegistry::init('Contact.Category'); > pr(*$rep*->find('first')); > pr(*$con*->find('first')); > > But

Re: Session variables are PHP_Incomplete_Class, throwing errors

2012-07-10 Thread rchavik
On Wednesday, July 11, 2012 7:01:07 AM UTC+7, Wendall wrote: > > Hi all, > > I've set a session variable that I assign to an object. When I load other > pages, sometimes I can get data out of the session var, sometimes I can't. > For example, I check a property of the object in the session va

Re: Getting strange console characters after updating to 2.2.0

2012-07-05 Thread rchavik
On Monday, 2 July 2012 13:57:44 UTC+7, Ronen Amiel wrote: > > Hey everyone. > > I updated my CakePHP version to 2.2.0 this morning. When I open up my > console, I'm getting all these odd characters. Typing "cake" for instance > give me the following: > > ←[36mWelcome to CakePHP v2.2.0 Console←[

Re: Why using HTML->link instead of manually writing an anchor text ?

2012-07-01 Thread rchavik
On Sunday, July 1, 2012 8:38:36 AM UTC+7, Marcelo Custódio wrote: > > Isn't it much slower concerning development time ? > > What are the advantages of of HTML->link ? > It understands your routes. > > Thanks ! > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cake

Re: Is there a lighter weight alternative to requestAction?

2012-06-28 Thread rchavik
On Thursday, June 28, 2012 3:45:40 PM UTC+7, Florian Krämer wrote: > > Congratulations for totally breaking a *MVC* framework... > Well, I'm no mvc purist, but a quick check in http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller gives: "A view requests from the model the informa

Re: "URGENT" - NEED HELP IN ASSOCIATION HABTM

2012-06-25 Thread rchavik
putting "URGENT" in your subject line is a sure fire way to get your questions ignored and get replied with mindless answers such as this one :p On Monday, June 25, 2012 10:10:11 PM UTC+7, Caio Vncius wrote: > > Hello, > > need a help in a ratio of two-mode HABTM tables. > > I have a table called

Re: Concepts I'm still not sure of...

2012-06-24 Thread rchavik
On Monday, 25 June 2012 07:22:49 UTC+7, godjen99 wrote: > > So I have been working with CakePHP a while now, and feel pretty > comfortable with it. I get the common ideas of MVC, but recently ran into a > situation at work that I can't put my finger on how to tackle. The company > I work for w

Re: Modules

2012-06-21 Thread rchavik
On Friday, June 22, 2012 10:03:57 AM UTC+7, Jamie wrote: > > > > On Thursday, June 21, 2012 9:23:44 AM UTC-7, Ratty wrote: >> >> You should not be changing any plugin code anyway. That's why they are >> plugins... >> You update them straight from github when you need to. If you want to >> modif

Re: Modules

2012-06-20 Thread rchavik
On Thursday, June 21, 2012 7:26:44 AM UTC+7, the_woodsman wrote: > > +1 for being able to configure Cake like this! > > IMHO, there's something much more elegant in the dir structure: > > /Users > /controllers > /models > /views > > /Articles > /controllers, > etc! > > There's practically

Re: Best way to implement a follower system (like Twitter) ?

2012-06-12 Thread rchavik
On Tuesday, June 12, 2012 7:24:36 PM UTC+7, centralizeme wrote: > > I tried with 'unique' => false, > > It doesn't erase previous ones, but I can follow the same user many times, > so it's not that I guess ? > > And keepExisting seems to work exactly the same as 'unique' => true ... > When using

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-16 Thread rchavik
On Monday, May 14, 2012 7:08:36 PM UTC+7, heohni wrote: > > If I try this: (from the 2.0 book) > > Router::redirect( > '/details*', > array('controller' => 'qrcode', 'action' => 'redirect', > array('persist' => true) > )); > > You could try to use .htaccess to do this: RewriteCond

Re: Saving HABTM erases existing records...

2012-05-01 Thread rchavik
On Tuesday, May 1, 2012 5:20:21 PM UTC+7, JonStark wrote: > > I tried with 'unique' => false, > > It doesn't erase previous ones, but I can follow the same user many times, > so it's not that. > > And keepExisting seems to wrok exactly the same as 'unique' => true ... > When using 'unique' => 'ke

Re: CakePHP, Linux and MS Sql Server

2012-04-11 Thread rchavik
Mark, Try https://groups.google.com/d/topic/cake-php/WgIhA0mj89M/discussion and see wether it's relevant to your environment. On Thursday, April 12, 2012 2:52:53 AM UTC+7, euromark wrote: > > in the $mssql it's 'database' => 'database' - but thats not that > important. > > we also tried the Sq

Re: CakePHP Multiple field search with ALL fields being OPTIONAL

2012-02-23 Thread rchavik
Use cakedc's search plugin. -- 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+unsubsc

Re: New to Cake(2.0) Form & Model Questions

2012-02-11 Thread rchavik
On Friday, 10 February 2012 19:16:31 UTC+7, janimal wrote: > > > The problem is trying to do the following > > Get the form to show the invoice_id passed to the controller method as > a read only - non-drop down and to pass that back to the controller > for the save once the user has entere

Re: cake2: Model class not loading

2012-02-08 Thread rchavik
git bisect would be handy here to pinpoint the problem. -- 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, se

Re: SQL Server, Linux and CakePHP 2

2012-02-08 Thread rchavik
On Wednesday, 8 February 2012 00:50:50 UTC, Justin Edwards wrote: > > rchavik, > > Thanks for this. I will try to see if I can get this going. I can grab > things using php manually, but would love to have it be fully functional, > and I don't mind disabling transact

Re: SQL Server, Linux and CakePHP 2

2012-02-07 Thread rchavik
I have the 1.3.x driver ported to datasources plugin for 2.x. It's still missing some functionality, but might be useful. https://groups.google.com/d/topic/cake-php/WgIhA0mj89M/discussion -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new Ca

Re: Sqlserver requires a database connection

2012-01-24 Thread rchavik
Try my fork of the datasources plugin: https://github.com/rchavik/datasources/tree/mssql-2.0 This uses 1.3 style DboSource, and uses mssql (and freetds ??) to connect to sqlserver. Be advised though, that I have not tested this extensively. Last time I run test, transactions is not

Re: CounterCache on HABTM tables?

2012-01-11 Thread rchavik
On Wednesday, January 11, 2012 1:29:39 PM UTC+7, OJ Tibi - @ojtibi wrote: > > Thiago, a HABTM join table by nature has "disposable" records as used by > CakePHP. For example, every time you rebuild how the Tags are linked to > Articles or vice-versa, the records from the `articles_tags` table tha

Re: cakephp and google webmaster tools

2011-12-12 Thread rchavik
This is unrelated to cake. You had debug > 0, and search engines indexed your error messages. Check what google thinks: https://www.google.com/search?q=site%3Abaretong.com&ie=utf-8&oe=utf-8#q=site:baretong.com&start=20 -- Our newest site for the community: CakePHP Video Tutorials http://tv.ca

Re: Validation rules

2011-11-23 Thread rchavik
On Wednesday, November 23, 2011 6:56:16 PM UTC+7, Jeremy Burns wrote: > > Makes no difference - but then why would it? > I think I have misunderstood your issue. I've tried again with this: 'first_name' => array( 'maxlength' => array( 'rule' => array('maxleng

Re: Validation rules

2011-11-23 Thread rchavik
What about adding 'last' => true in the rule ? -- 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

Re: CakePHP

2011-11-22 Thread rchavik
On Tuesday, November 22, 2011 6:00:24 PM UTC+7, Mike Karthauser wrote: > > > why would you want to load model in the view? > I have come across this requirement/need. And this is something that I've been wondering myself, i.e: are we allowed to instantiate a model in views by the rules of MVC?

Re: Trying to use JavaScript and PHP with CakePHP

2011-11-21 Thread rchavik
On Saturday, November 19, 2011 5:19:41 PM UTC+7, phpMagpie wrote: > > I am unaware of any limitation on uploading files via ajax, can you show > me where you read this? I read it here: http://jquery.malsup.com/form/#file-upload -- Our newest site for the community: CakePHP Video Tutorials htt

Re: Are automagic models for HABTM not supported anymore in 2.0?

2011-11-09 Thread rchavik
Euromark, This sounds similar to http://cakephp.lighthouseapp.com/projects/42648/tickets/2223-custom-modelclassname-in-inputs-leads-to-appload-trying-to-load-the-class Been trying to resolve this too. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check o

Re: Making radio button labels clickable part deux...can someone pls explain why the example in book 1.3 isn't doing what it says...??

2011-11-03 Thread rchavik
I tried most of your code and all generated labels are clickable. So, I'm not sure what is your actual issue is. Maybe you're outputting inputs for the same field more than once? On Thursday, November 3, 2011 10:22:53 PM UTC+7, dave wrote: > > Just a quick typo fix on that last statement...after

Re: Implementing a search functionality

2011-11-01 Thread rchavik
On Wednesday, November 2, 2011 10:29:04 AM UTC+7, Yves S. Garret wrote: > > Where should the processing happen, controller or view? > Controller. See: http://book.cakephp.org/view/1232/Controller-Setup > Also, why is the second provider started with an upper-case letter? > I assume you're

Re: Implementing a search functionality

2011-11-01 Thread rchavik
On Wednesday, November 2, 2011 3:00:01 AM UTC+7, Yves S. Garret wrote: > if(!empty($this->data['Provider']['last_name'])) { > $this->set('provider', $this->Provider->find('all', > > array('conditions' => >

Re: Implementing a search functionality

2011-11-01 Thread rchavik
I highly recommend to take a look at cakedc's search plugin. It's a little more involved to setup but worth the trouble to learn and use. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions s

Re: Going back to school: ACL

2011-10-31 Thread rchavik
On Friday, October 28, 2011 4:08:42 PM UTC+7, alaxos wrote: > > As far as I know, the core ACL does not support multiple groups per > user. > I believe ticket 770has some discussion about this and a patch f

Re: 2.0 upgrade shell

2011-10-18 Thread rchavik
I'm guessing here, but I find that having directories in app/plugins/ may cause the upgrade shell to give errors. Try removing the plugins in that directory. I have also managed to perform upgrade by renaming the app/config to app/Config, and implicitly load the plugins by CakePlugin::loadAll()

Re: rendering elements from helpers in Cakephp2

2011-10-17 Thread rchavik
A helper has the calling view object already stored in its $_View variable. Try: $this->_View->element('...'); -- 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 CakePH

Re: vtiger CRM with Cakephp

2011-10-17 Thread rchavik
On Monday, October 17, 2011 9:54:09 PM UTC+7, zuha wrote: > > We have developed an open source CRM for CakePHP and could use a new > contributor. (It's desktop & mobile ready, and very simple, and includes a > number of other functionalities as well). Let me know if you're > interested. C

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-04 Thread rchavik
You could create a custom helper inheriting HtmlHelper, then use the joeb'sAnalogue pluginto masquerade your helper as core HtmlHelper. This way, you don't have to modify your view files -- Our newest site for the community: CakePHP Video Tutorials http:

Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-12 Thread rchavik
His style is writing is different compared to previous postings. Perhaps his account was compromised -- 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

Re: How do I typically migrate a CakePHP app?

2011-07-29 Thread rchavik
There's 'cake upgrade all' utility shell that can assist upgrading your app code -- 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 unsub

Re: Where should i contact right people in CakePHP.org because this security critical problem

2011-06-22 Thread rchavik
On Wednesday, June 22, 2011 11:52:45 PM UTC+7, mark_story wrote: > > While I understand that people think this should be fixed, no one is > really coming forward with a patch. > <http://groups.google.com/group/cake-php> Hi Mark, Here's a quick patch: https://github.com

Re: CakePHP Cookbook in CHM file

2009-12-21 Thread rchavik
On Dec 22, 5:04 am, Adrenalin wrote: > >http://creativecommons.org/licenses/by-nc-nd/3.0/ > > Do you mean "*No Derivative Works* — You may not alter, transform, or build > upon this work." ? > I don't think this apply here since only the media is different. AFAIK chm > are just a bunch of html f

Re: handling timezone and DST opinions please

2009-11-25 Thread rchavik
I took a different approach and let the db handle it for me. Refer to my last reply in this thread: http://groups.google.com/group/cake-php/browse_frm/thread/de3efc2bc06d1edf/5a6a74abefddc316 On Nov 25, 6:40 pm, euromark wrote: > i just myself similar questions yesterday > i played with set

Re: Help with variable

2009-09-14 Thread rchavik
Try this: $('input[name="data[User][username]"]) ? But we're better off by passing an id to the $form->input('username', array('id' => 'username')). This way, we'll be able to use $('#username') to access the element. On Sep 14, 7:57 pm, "Dave Maharaj :: WidePixels.com" wrote: > I know its more

Re: international SEO routing

2009-09-08 Thread rchavik
Hello, This maybe totally off-the-mark. But maybe we can do this via mod_rewrite, ie: 1. Rewrite /en/* or /id/* and pass it as GET as $lang 2. Retrieve $lang via $this->params['url']['lang'] in beforeFilter 3. Adjust $this->params['base'] and $this->params['url'] and possibly $this->base to

Re: Best way to 'bake' with cake PHP....2 ways I have been told to do it...which is the correct way?

2009-07-29 Thread rchavik
I used a similar approach with cake outside of the document root. eg: cd ~ mkdir work cd work cake bake myperfectapp Then I will set this in apache config file, eg: vhosts.conf DocumentRoot /home//work/myperfectapp/webroot This way, we can share the same cake install for different ap

Re: oracle "find()"

2009-07-28 Thread rchavik
Not sure how cake handles this, but maybe you can workaround this issue by creating a synonym in your cake schema to OCD.MACHINES? create synonym machines for ocd.machines / On Jul 29, 9:56 am, pete123456 wrote: > Hi, > i im trying to query a table from "other users". is there a way to use th

Re: Session/Cookie problem with Facebook JS + PHP

2009-07-21 Thread rchavik
I agree. A better way would be to stage your application with myapp.com (or whatever name you want), and set that in your hosts file. You'll need to adjust your Facebook App setting and your apache configuration to reflect this change. On Jul 21, 6:56 pm, Smelly Eddie wrote: > Something is wro

Re: form with reset and submit button

2009-07-16 Thread rchavik
Upon rereading your snippet, I think your code should've worked. I'm not sure what's going on here. On Jul 16, 3:36 pm, Dhileepen Chakravarthy wrote: > Hi Everybody, > > I want to know how to show the form with reset or clear and submit button. > reset to clear all form values , submit to submi

Re: form with reset and submit button

2009-07-16 Thread rchavik
Trying moving your $form->button('Reset', ) to before $form->submit ('Save Post'); On Jul 17, 11:57 am, Dhileepen Chakravarthy wrote: > Please anyone gave me a solution --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: jQuery UI Tabs and Ajax

2009-07-16 Thread rchavik
IIRC, $('#tabs').tabs() should be sufficient, as long as one of your contains a remote URL. For your fifth tab, try using the following: Note that I removed the there. It should call /admin/attachments/getlist/XXX when the fifth tab is clicked/activated. On Jul 17, 12:30 am, h

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
On Jul 16, 1:50 pm, rchavik wrote: > huh? i think the data is already in the controller.. it's should be in > $this->data array. > > Do a debug in your BeersController->view_beer method. let me rephrase: Do a debug($this->data) in your BeersController->

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
On Jul 16, 1:50 pm, rchavik wrote: > huh? i think the data is already in the controller.. it's should be in > $this->data array. > > Do a debug in your BeersController->view_beer method. let me rephrase: Do a debug($this->data) in your BeersController->

Re: Retreiving values from Jquery to a controller in cakephp

2009-07-15 Thread rchavik
huh? i think the data is already in the controller.. it's should be in $this->data array. Do a debug in your BeersController->view_beer method. Get firebug, and inspect the response from the webserver. On Jul 16, 11:53 am, jeremy wrote: > hai can anyone tell me how can i get the posted values

Re: Stop AJAX Request

2009-07-15 Thread rchavik
IIRC, you cannot do that with AJAX requests. Since you're already using Auth component, you can set the Auth- >ajaxLogin variable (in your AppController) to contain the appropriate error and handle that condition accordingly in your javascript. On Jul 15, 4:01 pm, Luke wrote: > Hi, > > I am st

Re: Categories with Tree behaviour -- how to pull?

2009-07-14 Thread rchavik
maybe use $conditions parameter of generatetreelist? http://book.cakephp.org/view/228/Basic-Usage#generatetreelist-517 On Jul 13, 8:07 am, rocket wrote: > I have a standard categories, and products, and am using the Tree > behvaiour for the Category model. > > For example I have: > > +Electroni