Re: how can i route /size to /size.html

2012-10-17 Thread thatsgreat2345
You should NOT be doing this. If you want to, then create a controller, and a view then you can use cakephp routes to route the way you want it to. On Wednesday, October 17, 2012 7:20:55 PM UTC-7, Murray wrote: > > I just have a static html file which is app/webroot/size.html. I can > access it

Re: Google maps and CakePHP

2012-10-09 Thread thatsgreat2345
I recommend using some sort of phone verification. Charging people as means of verification will deter a lot of people because you're making them get their credit card out for a free service which making them get their credit card out is a tough matter. I do not see what is wrong with just a sim

Re: Firebug log limit has been reach

2012-09-15 Thread thatsgreat2345
If your firebug is reaching the log limit than you are doing something wrong. You should be using breakpoints and not just logging everything. This is also an easy question to google and really has nothing to do with CakePHP what so ever. But to do it, open firefox, type in about:config. Change

Re: How can controller action function distinguish whether URL ends with .xml or not?

2012-09-14 Thread thatsgreat2345
I recommend taking a look at parse extensions This will take care of exactly what you want it to do without any extra controller logic http://book.cakephp.org/2.0/en/development/rest.html On Thursday, September 13, 2012 8:31:38 PM UTC-7, Lightee wrote: > > Dear Cakephp gurus, > > I am creating so

Re: Possible to make different controllers share same action?

2012-09-14 Thread thatsgreat2345
Either a component, or in your App Controller. In the App Controller you'd be best just importing the model and doing what you need to do. I believe doing it in App Controller sticks with MVC conventions rather than creating a component just for this one action but I could be wrong. On Friday,

Re: Multiple Cron jobs & CakePHP.

2012-09-07 Thread thatsgreat2345
Well I would actually write your shell and then create whatever data fetching/caching done in your model. In your shell just do $uses = array('YourModel');. I imagine you have some sort of function in your model that grabs data and such, and then caches it. So in your shell you can do just a call

Re: Multiple Cron jobs & CakePHP.

2012-09-07 Thread thatsgreat2345
Create shells, http://book.cakephp.org/2.0/en/console-and-shells.html And then run them using CakePHP. Be forewarned that you can use $uses to import models, but to use components you'll need to import Controller/Component from the core, ComponentCollections, etc. I'm not an expert with shells an

Re: integrating pusher.com with cakephp

2012-08-19 Thread thatsgreat2345
I'm not sure why you are having issues, I would show you an example but I already showed you my example. Literally just create a new Pusher object with your secret keys and such and you can trigger any channel with any event with any data. Is there any issue with your javascript, and you can't r

Re: integrating pusher.com with cakephp

2012-08-14 Thread thatsgreat2345
Yeah, it's quite simple. You just import the pusher app as a vendor, or require it which I believe is what the proper way of doing it in 2.2.1 is. Like this, just put the Pusher.php file they provide in your Vendors folder of your app. require_once(APP . DS . 'Vendor' . DS . 'Pusher.php'); $pushe

Re: Where is this CSS?

2012-03-25 Thread thatsgreat2345
If you want to use your own layout you must add a file called default.ctp into layouts folder (inside your apps View folder). This will override cakes default layout, you'll have to setup your default layout though. Then you can define your own css stylesheets, add them into the css folder of y

Re: Share session with Magento

2012-03-21 Thread thatsgreat2345
Inside of your core.php file in your config find where it says Configure::write('Session', array( 'defaults' => 'php' )); * - `Session.cookie` - The name of the cookie to use. Defaults to 'CAKEPHP' So Configure::write('Session', array( 'defaults' => 'php', 'cookie' =>

Re: Where to save utility routines

2012-03-21 Thread thatsgreat2345
I would recommend turning it into a helper, check the cakephp book about helpers, and then you can add it to the AppController or into specific controllers that you want. On Wednesday, March 21, 2012 12:01:20 PM UTC-7, Graham wrote: > > Dear all, still new to CakePHP but learning all the time. >

Re: The requested URL /users/register was not found on this server.

2012-03-19 Thread thatsgreat2345
I'm not sure how up to date those are but that isn't the issue at the moment. It appears your configuration of apache is incorrect. You have 2 options. The first being change your documentroot in httpd.conf of apache, so that your localhost points to your app folders webroot. This keeps Cake core

Re: How do I redirect?

2012-03-19 Thread thatsgreat2345
roller' => 'tests', 'action' => 'index'); For the record, it is not recommended to use print when debugging, if you just want to do browser debugging use cakes debug function. You can use it anywhere, and it accepts any type of variable and will output i

Re: AppImport from Lib folder in 2.1

2012-03-19 Thread thatsgreat2345
If you are including a file that doesn't take the place of a core file then you do not put it in your apps Lib directory, or in the core lib directory at all. If it is not a component or plugin which go in their respected locations then you place external php files in your apps vendor folder. Th

Re: hasAndBelongsToMany

2012-03-19 Thread thatsgreat2345
I guess you could do a paginate with just a limit of 1 on the ingredients inside the recipes controller I would have it as recipes/view/recipe_id So you'll do your paginate call and it should grab the first by default And then just setup your next/previous links in your view using the paginator

Re: How do I redirect?

2012-03-19 Thread thatsgreat2345
Your problem is you are redirecting to test controller when in fact you should be redirecting to tests controller. $this->redirect(array('controller' => 'tests', 'action' => 'index')); On Monday, March 19, 2012 7:56:09 AM UTC-7, glevine wrote: > > Right, so in the example I was mainly just wan

Re: How do I redirect?

2012-03-18 Thread thatsgreat2345
You can not send output to the webpage and then redirect. On Sunday, March 18, 2012 7:28:02 PM UTC-7, glevine wrote: > > I have the following code: > > class TestsController extends AppController > { > public function index() > { > print 'in the index'; > } > > public function change()

Re: How to remove a field from $this->request->data so that it is not saved?

2012-03-14 Thread thatsgreat2345
I would recommend using the whitelist that Miles recommended, I forgot about this parameter. It's safer to specify what fields you only want to save rather than removing fields you don't want to. On Wednesday, March 14, 2012 11:45:21 AM UTC-7, Daniel wrote: > > Right I found it at http://php.net

Re: How to remove a field from $this->request->data so that it is not saved?

2012-03-14 Thread thatsgreat2345
You could use unset in the controller, or if you have to do it often I would highly recommend using beforeSave in your model and doing a little logic and then potentially unsetting what ever variable unset($this->request->data['User']['something']); On Wednesday, March 14, 2012 10:15:30 AM UTC-

Re: Data retrieval

2012-03-13 Thread thatsgreat2345
If it is 1 it will echo male, if 0 it will echo Female On Tuesday, March 13, 2012 9:56:25 PM UTC-7, alexkd wrote: > > Hai, > I am new to cakePHP. I want to display in my form 'Male' or 'Female' > instead of '1' and '0'. > In my view-index > > > > Although i searche a lot. I ca't . > >

Re: CakePHP on USB

2012-03-10 Thread thatsgreat2345
According to the error it looks like it is looking for cake inside of your app. Because you have control of apache you can change what it considers your webroot or since security isn't a huge issue in a flash drive I would just toss your cake folder inside your htdocs, leave your app folder insi

Re: CakePHP 2 Folder Structure

2012-02-27 Thread thatsgreat2345
n which every user would have his/her > copy of the "projectname" folder only, and let the contents of > ProjectName (without "projectname") rest somewhere on our project > server. > > Is it possible to define the DS, ROOT, APP_DIR to be a somewhere on > server (f

Re: CakePHP 2 Folder Structure

2012-02-27 Thread thatsgreat2345
I'm not sure what you're asking, but it sounds like you want to move it somewhere else. You can do this by moving your webroot, and then modifying your webroot index.php file and pointing it to where cake is at (lib) and then also providing it the name of your application folder (projectname) On F

Re: How to detect which button on input form pressed?

2012-02-13 Thread thatsgreat2345
I understand why there might be applications in which you want to know what data was in the form when the user clicked cancel, but if you're canceling why are you submitting the form? Why not just link them back to the index or wherever they came from. On Feb 13, 12:02 pm, McScreech wrote: > PHP

Re: Send user to specific controller/action from front page?

2012-02-11 Thread thatsgreat2345
not work: > Router::connect('/', array('controller' => 'posts', 'action' => > 'index')); > > OK, I used $this->redirect, that did the trick. > > On Feb 11, 4:57 pm, thatsgreat2345 wrote: > > > > >

Re: Send user to specific controller/action from front page?

2012-02-11 Thread thatsgreat2345
I'm not sure what you are asking? Do you mean like $this- >redirect(array('controller'=>'somecontroller','action'=>'someaction')) or after the page has already loaded? If that then you'll need to look into sending people places with javascript Generally window.location = 'www.example.com' On Feb

Re: A little help with json_encode

2012-02-03 Thread thatsgreat2345
You could just do a quick condition ( (empty($response->number)) ? 0 : json_encode($response->number)) This makes it seems like you are echoing it out from the controller. To keep MVC form I have a function in my AppController(app_controller on 1.3) which I can call with $this->json(arrayhere) It

Re: Is there a way to disable before callbacks in model->read method

2012-02-01 Thread thatsgreat2345
If you do model->find('first') you can disable callbacks in the second parameter. model->find('first',array('callbacks'=>false)) On Feb 1, 9:44 pm, ceap80 wrote: > I need *NOT TO *fire before callbacks when using model read method. > > Is there a way to achieve that or do I need to change my mode

Re: how to confiure myproject with cakephp 1.3 on shaing host

2012-02-01 Thread thatsgreat2345
Seems like you got it working. Just need to make a controller. On Jan 31, 3:46 pm, ahmed fakher wrote: > something wrong it is not work > look at this linkhttp://alashera.3owl.com/testproject/ > you will see this error > > Warning: include(cake/bootstrap.php) [function.include]: failed to > open

Re: how to confiure myproject with cakephp 1.3 on shaing host

2012-01-31 Thread thatsgreat2345
This way you can just add as many apps you want inside /cake, and then toss the webroots into public_html. You won't have to have tons of different cakes for each project you work on. On Jan 31, 1:01 pm, thatsgreat2345 wrote: > Running on shared hosting, I upload my cake folder to ju

Re: how to confiure myproject with cakephp 1.3 on shaing host

2012-01-31 Thread thatsgreat2345
Running on shared hosting, I upload my cake folder to just above public_html. Inside this cake folder you should have your app folder, and lib, plugins, vendors, index.php, and .htaccess My app folder I will name after my project, so for this instance we shall call it TestProj Then in public_html I

Re: AppController not loading ?

2011-12-26 Thread thatsgreat2345
You do not need App::uses('Controller', 'Controller'); If you're using CakePHP 2.0 then you will need to place AppController.php into your Controllers folder in your app. It will be automatically loaded, and extended. On Dec 26, 11:34 am, "Timothy O'Reilly" wrote: > David, > I am new to Cake & P

Re: How come this isn't a safe way to store username and passwords

2011-08-18 Thread thatsgreat2345
If someone happens to get into your server/hosting via FTP or somehow getting on your computer they can easily get your email and password and have all sorts of fun spending your money on paypal. Usually paypal has a way to generate API Keys to use rather than plain text emails/passwords On Aug 18

Re: change default controller

2011-05-09 Thread thatsgreat2345
Routes, you can re-route to anything you want, check the book under routes configuration http://book.cakephp.org/view/945/Routes-Configuration On May 9, 9:41 pm, Miqdad Ali wrote: > how to change defualt controller to my logins controller > > --

Re: $this->html->image() vulnerabilities

2011-04-16 Thread thatsgreat2345
No it does not, if you look at the html helper in the cake library it does no validation for this. Primarily it assumes you already have done the proper checking when saving the url into the database and confirmed that it is an image The proper location for this would be to write your own validatio

Re: Using render() with Ajax (Cake 1.3.8)

2011-04-14 Thread thatsgreat2345
Do this http://www.sanisoft.com/blog/2010/10/25/cakephp-sending-json-data-in-response/ On Apr 13, 11:29 am, Will <000w.s.s@gmail.com> wrote: > Hi all, > > I'm brand new to CakePHP, so forgive me if this is a silly question, > but I have been having trouble understanding how render() is suppose

Re: convert to javascript to cake

2011-04-06 Thread thatsgreat2345
This looks like image swap code that was created by fireworks. The problem you seem to be having is that the image location is wrong which means your button isn't changing when you hover over it. Where it says images/adminControls/button_apply_hover.jpg you need to replace that with the path to th

Re: Find all records from "last week" or "this week"

2011-03-10 Thread thatsgreat2345
I'm assuming you have a column in the database called created which cake will fill in automatically If you check the book it gives you an example here http://book.cakephp.org/#!/view/1017/Retrieving-Your-Data under the complex find conditions $conditions = array( "Post.created >" => date('Y-m-d',

Re: cakephp shared hosting question

2011-03-10 Thread thatsgreat2345
t; I have a question, when you say "put your webroot in your public_html > ", do you mean put the "webroot" folder in public_html, or you mean > put the files in the webroot in the "public_html"? > > Thanks!! > > -David > > On Mar 9, 9:42 p

Re: Mobile Phone Layout - Using the RequestHandler in the CakeErrorController / AppError

2011-03-09 Thread thatsgreat2345
What I would do is in your app_controller.php (if you don't have on make it) you can create a function probably in beforeFilter to check if it is mobile. Then you can set a variable like $this->isMobile and see if it's true or not wherever yo need it. Just something I thought about, maybe wait for

Re: cakephp shared hosting question

2011-03-09 Thread thatsgreat2345
Then make a new folder in public_html, and change that path properties to what i posted there and you only have to have one cake core, but multiple apps On Mar 9, 6:39 pm, thatsgreat2345 wrote: > You need to put your webroot in your public_html and then change your > index.php file in webr

Re: cakephp shared hosting question

2011-03-09 Thread thatsgreat2345
You need to put your webroot in your public_html and then change your index.php file in webroot to point to your cake root and your app path This is how I have it setup. /cake /appnamehere /controllers /models /other stuff /cake

Re: Firing queries in cakephp

2011-03-05 Thread thatsgreat2345
$this->Model->id = someId; $this->Model->save(dataArray); On Mar 5, 6:13 am, Sam Bernard wrote: > Is the id of the associated row included in your data? If not, it will do an > insert and not an update. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: how to automatically have the logged in users id in a form

2011-02-17 Thread thatsgreat2345
or rather $this->Auth->user('id'); On Feb 17, 4:07 pm, labianchin wrote: > Hi. > > In the controller action method you can use something like: > $this->data['ModelName']['user_id'] = $this->Session- > > >read('Auth.User.id'); > > On 18 fev, 00:57, barricades wrote: > > > Hi there, I've searched

Re: Model and Controllers

2011-02-14 Thread thatsgreat2345
If you just need a model in one location do not use $uses, leave it $uses = array(). Then in the beforeRender you can use App::Import App::Import('Model','ModelName'); $modelname = new ModelName(); $modelname->find('all'); or $this->load('ModelName'); $this->ModelName->find('all') On Feb 14, 6:2

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread thatsgreat2345
I think the ability to say whether you're new/old doesn't depend on how long you've been using cake but you knowledge of the ins and outs of cake and how it all works. On Feb 11, 4:52 pm, "Krissy Masters" wrote: > I do not think it matters if your new and need help or old cakepro and need > help.

Re: SWF Uploader ... or any Good One...?

2011-02-08 Thread thatsgreat2345
I use uploadify, works just fine with cakephp, allows multiple file uploads and restriction to file types before uploading. On Feb 8, 7:01 pm, "chris...@yahoo.com" wrote: > Hi guys, > > need help with UPLOAD... > I have SWF Uploader originaly setup on a script for photos. > And its uploading grea

Re: Sessions working in one controller and not the other

2010-05-04 Thread thatsgreat2345
array, it works. What would cause this? > > On May 3, 6:21 pm, thatsgreat2345 wrote: > > > > > Include the session component > > > On May 3, 3:59 pm, LordZardeck wrote: > > > > For some reason, the session handling works in one controller and not > &g

Re: Sessions working in one controller and not the other

2010-05-03 Thread thatsgreat2345
Include the session component On May 3, 3:59 pm, LordZardeck wrote: > For some reason, the session handling works in one controller and not > the other. I can't figure out why. I am using CakePHP 1.2.5. > > // > //Does work > // > > sessions_controller.php: > > class SessionsController extend

Re: i need ajax shopping cart with cakephp

2010-04-29 Thread thatsgreat2345
U then make one are we supposed to just write it all for you On Apr 29, 11:54 am, hoss7 wrote: > i need ajax shopping cart with cakephp > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message becau

Re: Vendors and Controller

2010-04-26 Thread thatsgreat2345
If you're going to do that you should of written a component instead On Apr 26, 8:17 am, emanuele wrote: > ok thank u > > On Mon, Apr 26, 2010 at 4:59 PM, euromark wrote: > > > > > thats not how your vendors are supposed to work > > you usually pass them the data manually > > > like $MyVendorClas

Re: Clear field after validation failure

2010-04-25 Thread thatsgreat2345
Well what else would the browser do... It sets the value of the tag that's kind of how things work. Add 'autocomplete'=>'off' to your field and see how that goes to see if it truly is the browser which I suspect it is. On Apr 25, 5:53 pm, Greg Skerman wrote: > Calvin: data is being written to the

Re: I need full ORM example

2010-04-24 Thread thatsgreat2345
gt; thank you > > On 25 Nisan, 02:52, thatsgreat2345 wrote: > > > > >http://book.cakephp.org/view/219/Blog > > > Blog example > > > On Apr 24, 4:38 pm, zonery wrote: > > > > Hi everybody, > > > I need full ORM crud example. (Not with scaf

Re: I need full ORM example

2010-04-24 Thread thatsgreat2345
http://book.cakephp.org/view/219/Blog Blog example On Apr 24, 4:38 pm, zonery wrote: > Hi everybody, > I need full ORM crud example. (Not with scafolding). Manually created > conroller, model and view including "one to many", "many to many" and > "one to one" associations. including index, edit,

Re: Joining Data for Auth Component to read

2010-04-20 Thread thatsgreat2345
Auth component only stores values that are in the users table, so you can grab the user id using $this->Auth->user('id') and then do a find. Or alternatively you can use $this->Auth->login and once if it successfully logs in then do a find on the group data and store it in the session for later use

Re: where do i put the external library in cakephp

2010-04-18 Thread thatsgreat2345
Put it in vendors folder. Here is an example showing you how to import a vendor if it doesn't follow cake conventions naming wise. http://book.cakephp.org/view/579/Loading-Files On Apr 18, 12:29 pm, Bryan Lim wrote: > hi all, > > if i am using the twitterlibphp library, where should i put this

Re: Building API - Problems w/ Passwords

2010-03-04 Thread thatsgreat2345
When the person logs in via API and gets the token, you don't have to have use the original password. Just do the $this->Auth->password() again, then take the md5 of the username and the hash of the password. There are other ways to achieve tokens so I guess this is one way to go at it , I would ju

Re: Please Help!! my password is always null!!!

2009-08-23 Thread thatsgreat2345
$form->create('User', array('url'=>array ('controller'=>'users','action'=>'login'))); On Aug 23, 9:50 pm, liaogz82 wrote: > Hi all, > > I dont know why but my password is always sent as null in $this->data, > which causes it to be unable to retrieve data for comparison. The > following below are

Re: actual CakePHP books

2009-08-17 Thread thatsgreat2345
Read the API, don't like the docs? Right some of your own stuff if you believe you can present it clearer. But the API and Book are very nice and show everything that is needed. On Aug 17, 6:29 am, anders als wrote: > hi there, > > i like cake but my problem is finding ressources from which i ca

Re: Hi i am newbie !

2009-08-11 Thread thatsgreat2345
Don't use 1.1, I'd recommend using 1.2 blog tutorial http://book.cakephp.org/view/219/Blog On Aug 11, 9:26 am, pomares wrote: > This tutorial is a good way to start: > > http://book.cakephp.org/view/326/The-Cake-Blog-Tutorial > > On Aug 11, 9:43 am, sunny wrote: > > > Can any body tell me how b

Re: cPanel shared hosting

2009-08-10 Thread thatsgreat2345
I usually have the app still inside the cakephp directory, and then depending if I have multiple apps on the host depends if I put webroot in subfolders, or just in public_html. Then just have to modify the index.php in the webroot to direct it to the location of cakephp for the root, and then the

Re: Curious how to question

2009-08-06 Thread thatsgreat2345
Just use the correct conventions, taken right from the form naming conventions in cakephp docs input('Modelname.0.fieldname'); echo $form->input('Modelname.1.fieldname'); ?> On Aug 6, 2:11 pm, "Dave Maharaj :: WidePixels.com" wrote: > Just wondering how to go about something like this...

Re: Problems setting up cakephp site on shared server.

2009-08-02 Thread thatsgreat2345
in your webroots index.php make sure the root is correct. Usually having to add dirname to the root a few times so that is will lower an extra directory or 2 so that it is pointing to the root properly for cake. On Aug 2, 1:28 pm, Alastair wrote: > Hi all, > > As the subject says, I'm having som

Re: App in server takes a lot of time in response

2009-07-29 Thread thatsgreat2345
If you are having problems with speed issues check out http://www.pseudocoder.com/archives/2009/03/17/8-ways-to-speed-up-cakephp-apps/ should have some good tips for you to speed up you cakephp app. On Jul 29, 1:40 am, Veoempleo wrote: > Hello, > > We are developing our application with phpcake

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 thatsgreat2345
When I'm setting up a new project I typically use cake bake project as it will change the security salt for you and you can setup your db config, and all that great stuff right from cake bake. I've done it both ways you've said though, copying previous webroots to create my new app folder but why

Re: Downloading and dealing with zip files

2009-07-24 Thread thatsgreat2345
fsock, or curl, and gzip On Jul 24, 7:54 am, rhorn wrote: > I've done a little bit of searching, but was unable to find anything. > I have a situation where I need my application to download a zip file > (it's an archive of feeds), extract and access its contents. Would > like to keep it as cake

Re: $this->data donot retreive any value

2009-07-24 Thread thatsgreat2345
Have you even read the documentation at all? I would really recommend doing the blog before you take anything else on. but $form->create('Note',array('action'=>'add')); $form->input('Note.title'); //or just $form->input('title'); $form->input('Note.body',array('rows'=>5,'cols'=>5)); $form->end('S

Re: 1 Account with Multiple Users?

2009-07-18 Thread thatsgreat2345
Yeah this isn't exactly a normal request, but you could somehow set up a that a User has a field inside itself that is user_id. So when their is a primary account it sets the field to 0, however when their is a secondary account it sets user_id to a parent account. So when Auth component tries to

Re: Filtering pagination

2009-07-14 Thread thatsgreat2345
Just set it in the session On Jul 14, 3:06 am, Arnau wrote: > Hi! > > I need paginated lists, and I see Cake really helps with it. > I use a searcher that filters the list and when I change the page the > filter dissapears. > I see I need to send the conditions of the filter from one page to > a

Re: Secure File Download

2009-07-13 Thread thatsgreat2345
Thanks would of had to code my own thing download function but now with this Media view that is all covered, sweet. On Jul 13, 11:39 am, brian wrote: > Hi Jörg, > > I'll show you the basics of how I just did this. In my case, the files > are stored above webroot and there's a record for each in

Re: Single controller file to access multiple model files

2009-07-13 Thread thatsgreat2345
If you are going to load a lot of models into one I WOULD NOT RECOMMEND THIS! You should use database relations to navigate, ie. $this->User->Post->find(); or Use containable as well. Or use $this- >loadModel when you need it. Putting a lot of models into the uses variable slows your sites speed d

Re: Confirm Password

2009-07-13 Thread thatsgreat2345
Yeah the reason they come back different is a field named ['AuthModel'] ['password'] is automatically hashed, but when you hash with Security it uses something else. so use $this->Auth->hashPasswords which you can check out more in the book here http://book.cakephp.org/view/247/AuthComponent-Metho

Re: Any dissadvantage to adding Containable behvior to all models

2009-07-13 Thread thatsgreat2345
Uh not that I can see, I tossed it in my app_model a while ago and haven't even though about it till now. On Jul 13, 10:33 pm, womble wrote: > Are  there any known disadvantages to adding the Containable behavior > to a all models? --~--~-~--~~~---~--~~ You receiv

Re: Problem Storing Sessions from Login

2009-07-11 Thread thatsgreat2345
I assume you are using Auth component. Which means you can use $this- >Auth->user('id') and it should give you the users id. And to see whatever variables are stored for that user you can just debug it debug ($this->Auth->user()) or You could just read the cookie as well if you really need to. On

Re: Abandoned by developer using CakePHP, need help with web security emergency

2009-07-11 Thread thatsgreat2345
And as for the testimonial input I'd recommend sanitizing it so people can't post their own links in it. On Jul 11, 7:18 pm, thatsgreat2345 wrote: > Upon adding the testimonial have a field in the database, like a > published tinyint(1) field. In the admin panel you could just s

Re: Abandoned by developer using CakePHP, need help with web security emergency

2009-07-11 Thread thatsgreat2345
Upon adding the testimonial have a field in the database, like a published tinyint(1) field. In the admin panel you could just select which to publish and do an UpdateAll, or something along those lines, and then delete the rest. As for the ssl cert I believe that using the Security component and

set not working

2009-06-21 Thread thatsgreat2345
When I use $this->set in my controller it doesn't seem to work, I think this could be due to my beforeFilter as I have it takes the current action, then checks the first variable to determine which view to show. function beforeFilter() { if (in_array($this->params['action'],$this-

fields param throws error

2009-06-19 Thread thatsgreat2345
I have a type that hasmany category, category has man subcategory, and subcategory hasmany product, and all my belongsto are set as well to the parent above, and all tables have proper foreign_ids. My controller uses , Type. Which when I run debug($this->Type->find('all',array(

Router Connect

2009-06-18 Thread thatsgreat2345
I'm a little confused by routes at the moment. Currently I have an admin structure where each function such as function users($load = null, $id = null) { $this->viewPath = 'admins/users'; switch ($load) { Case 'add': $this->rende

Re: Form help

2009-06-16 Thread thatsgreat2345
create($model, array('type' => 'post', 'url' => '/update')); ?> On Jun 16, 12:10 pm, "Dave Maharaj :: WidePixels.com" wrote: > I have > create($model, array('type' => 'post',  'action' => > '/update')); ?> > > which renders method="post"> > > Is there a way to get it to look like this? > > >

Re: Help with CSS Rollover Links

2009-06-11 Thread thatsgreat2345
Probably has an image, set as a background or something with on rollover changes background image or whatever. To OP, this is not the best option as if your viewer has images disabled, or they are using screen readers and you have no alt text, and no text for the link, they are kind of SOL. So you

Re: Jquery-ui -- how do I 'install' it?

2009-06-05 Thread thatsgreat2345
As the CSS has the paths set when they are each in the same directory, you will have to modify the css and tell it the new location of all the images. Which stuff should then show properly. You are also including jQuery and not just jQuery UI correct? On Jun 5, 12:04 pm, Beedge wrote: > Hi all,

Re: Uploading an file overwrites the name-field

2009-04-25 Thread thatsgreat2345
No need for a workaround, just show us your form as I assume it is incorrect. On Apr 25, 6:35 pm, Aurelius wrote: > I already did a workaround, not really clean, but it works and I'm a > bit in a hurry > thx! > > On 26 Apr., 03:17, Miles J wrote: > > > Can we see your action/model code for

Re: model confusion

2009-04-12 Thread thatsgreat2345
Wouldn't it be much easier to have a users table, with a field such as temp and make it booleanso you are either temp or not temp. It would be much faster, and less pointless then keeping users separate. On Apr 12, 9:03 am, brian wrote: > There shouldn't be any reason to associate TempUser & Use

htaccess, with webroot as folder

2009-04-12 Thread thatsgreat2345
My cake with apps, are stored in /cakephp and I have my webroots in / public_html/FOLDER, well the problem is I can't seem to get my htaccess to work. I don't exactly grasp the htaccess process, so after doing some searching my htaccess in my webroot looks like this RewriteEngine on RewriteRule s

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-04 Thread thatsgreat2345
There is also ioncube On Jan 4, 8:11 pm, Aus wrote: > Graham, > > i've checked both, i guess i'll go with Zend Optimizer, > > Cheers mate! > > Aus > > On Jan 5, 4:25 am, Graham Weldon wrote: > > > You can, through using an optimiser / byte code generator, for > > example: > > > - Zend Optimiser

Re: Edit multiple models in the same page: possible?

2009-01-03 Thread thatsgreat2345
Use Ajax? On Jan 3, 4:07 pm, Jaime wrote: > Hi all, > > I wonder if it's possible to have two different forms for two > different (but related) models in the same page. > > Imagine a page where the logged in user can edit his profile (model > Profile) as well as to add a photo into his gallery (

Re: form->create duplicating my controller name

2008-12-29 Thread thatsgreat2345
Your model should be called client.php not clients.php On Dec 29, 10:19 am, ymadh wrote: >         echo $form->create('Client',array('action'=>'add')); >         echo $form->input('firstname'); >         echo $form->input('lastname'); >         echo $form->end('Save Client'); > ?> > > I have a

Re: Overkill for a starter project?

2008-12-18 Thread thatsgreat2345
Don't reinvent the wheel, just use wordpress, or joomla or some other CMS / Blogging that is already made. On Dec 18, 9:13 am, "Olivier Percebois-Garve" wrote: > If your target is really simple blog, then cake is the perfect tool. if you > are "intermediate" php, you should not have troubles get

Re: Updating a single database rows field

2008-12-17 Thread thatsgreat2345
You are calling $this->User->create(); signifying that you want to create a new field not update. On Dec 17, 12:56 am, gearvOsh wrote: > Nope, still doesn't work. This seems like a lot of hassle/steps in > between just to do something simple like update. > > Heres a snippet of my code: > > if ($

Re: Changing the Auth User Model

2008-12-14 Thread thatsgreat2345
each controller. On Dec 14, 10:19 am, DavidH wrote: > Sorry for the confusion. > > Model: Twitcher > DB Table: Twitchers > Controller: twitchers_controller.php > > I'm sure the Twitcher(s) stuff is OK. Why isn't it acting on my > userModel assignment? > > Davi

Re: $validate an array

2008-12-14 Thread thatsgreat2345
var $validate = array( 'field1' => array( 'ruleName' => array( 'rule' => 'ruleName', ) ), 'field2' => array( 'ruleName' => array( 'rule' => 'ruleName', ) ) ); is how it should be, check the book for more information on validati

Re: Changing the Auth User Model

2008-12-14 Thread thatsgreat2345
The model is called Twichers? The model should be singular, called Twicher(models/twicher.php), the table in the database should be called twichers, and controller should be twichers_controller.php which you have. On Dec 14, 5:14 am, DavidH wrote: > Hi > > I'm sure there must be a simple solutio

Re: Auth, Session Timouts & Login

2008-12-10 Thread thatsgreat2345
On logout delete the session cookies, or redirct to a page with out auth component on logout. On Dec 10, 9:51 am, lazlo2019 <[EMAIL PROTECTED]> wrote: > Hi > > Here's the scenario. Set the timeout to a very low number (I'm using 1 > for arguments sake) and security to high. Login as normal. Logou

Re: Error when submitting form to a controller using different model name

2008-12-07 Thread thatsgreat2345
Do you have a controller called businesses_controller.php and in that a function called thank_you? On Dec 7, 9:37 pm, Tony <[EMAIL PROTECTED]> wrote: > I'm in the process of creating a website that is for my affiliates and > their information is stored into a model called 'User' and I have a > co

Re: How can I view the screencasts on Linux

2008-12-07 Thread thatsgreat2345
It is quicktime. On Dec 7, 8:47 pm, "Ed Howland" <[EMAIL PROTECTED]> wrote: > On Sun, Dec 7, 2008 at 9:32 PM, Marcelo Andrade <[EMAIL PROTECTED]> wrote: > > On Sun, Dec 7, 2008 at 10:09 PM, Ed Howland <[EMAIL PROTECTED]> wrote: > > >> I am having trouble playing the screencasts on the cakephp.org

Re: ORM, fetching related rows of corresponding model: undefined index..

2008-12-07 Thread thatsgreat2345
gt; >           'Question' => array( > > >              'className'    => 'Question' > > >           ) > > >        ); > > >     } > > >     ?> > > > > Model questions.php > > > >     > >     class Question extends AppModel { > > >        var $name = 'Q

Re: Ordering search results by best match

2008-12-07 Thread thatsgreat2345
I guess it is pending approval but here is a cached version from google http://209.85.173.132/search?q=cache:NzoXH-E2eZwJ:bakery.cakephp.org/articles/view/sphinx-behavior+SphinxBehavior+cakephp&hl=en&ct=clnk&cd=1&gl=us&client=firefox-a On Dec 7, 2:23 pm, Johnathan Henderson <[EMAIL PROTECTED]> w

Re: Can/Should I use 1.2RC3 in a production environment

2008-12-07 Thread thatsgreat2345
1.2 unstable, where did you get that from? On Dec 7, 9:59 am, "Ed Howland" <[EMAIL PROTECTED]> wrote: > HI, cake noob here. I know 1.2 isn't stable yet, but does anyone have > any experience or advice wrt usin 1.2RC3 in a production environment? > We are migrating a Perl CGI project over to Cake

  1   2   >