Re: Help me design the database structure

2016-04-01 Thread mike karthauser
information about google docs can be found in their support section. http://lmgtfy.com/?q=google+docs+version+control On Fri, Apr 1, 2016 at 1:55 PM, Clement Crownrise < clementcrownr...@gmail.com> wrote: > @Mike, does google has this type of feature? please do enlighten me the > mor

Re: Help me design the database structure

2016-04-01 Thread mike karthauser
probably best to look at something like google docs which already has this functionality before you start building something from scratch to handle this. -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry, we

Re: Uploading Cakephp site to live server and getting error 500 internal server error

2015-07-16 Thread Mike Knight
Please check your web server(nginx/apache) logs . without further information ,I can't say what's wrong. 2015-07-16 14:03 GMT+08:00 Amitava Pramanik < amitava.xecution.technolog...@gmail.com>: > I have created a cakephp site and uploaded to my staging server. The Url > is http://xecutiontech.com/

Re: All form fields are not saving in my cakephp database

2015-05-20 Thread Mike Karthauser
it looks like your primary key isn’t defined correctly. cakephp will expect a primary key of ‘id’. if yours is called something different you’ll need to declare it in the model. http://book.cakephp.org/2.0/en/models/model-attributes.html regards Mike > On 19 May 2015, at 14:00, Clem

Re: Localhost funciona...Em conta no Hostgator não

2015-05-05 Thread Mike Karthauser
email to cake-php@googlegroups.com > <mailto:cake-php@googlegroups.com>. > Visit this group at http://groups.google.com/group/cake-php > <http://groups.google.com/group/cake-php>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/opto

Re: Safari 8.x.x - MissingControllerException

2015-01-16 Thread Mike Karthauser
l to cake-php+unsubscr...@googlegroups.com > <mailto:cake-php+unsubscr...@googlegroups.com>. > To post to this group, send email to cake-php@googlegroups.com > <mailto:cake-php@googlegroups.com>. > Visit this group at http://groups.google.com/group/cake-php > <http://gr

Re: different css styles for checkboxes

2014-12-18 Thread Mike Karthauser
@googlegroups.com > <mailto:cake-php@googlegroups.com>. > Visit this group at http://groups.google.com/group/cake-php > <http://groups.google.com/group/cake-php>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/o

Re: display pure html page without layout

2014-11-24 Thread mike karthauser
You are in the croogo filesystem so you'll need to put in within the views/templates/ webroot (not sure off the top of my head where that is) Mike Karthauser Brightstorm limited Tel: 07939252144 On 24 Nov 2014, at 15:27, Frank Hassani wrote: >> Hi Steven, > trying it that way, b

Re: custumize $this->Html->link()

2014-11-10 Thread Mike Karthauser
oups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com > <mailto:cake-php+unsubscr...@googlegroups.com>. > To post to this group, send email to cake-php@googlegroups.com > <m

Re: CakePHP 2.5 random hanging

2014-10-30 Thread Mike Karthauser
group, send email to cake-php@googlegroups.com > <mailto:cake-php@googlegroups.com>. > Visit this group at http://groups.google.com/group/cake-php > <http://groups.google.com/group/cake-php>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.

Re: How encrypt IDs

2014-09-22 Thread Mike Karthauser
cter UUID (String::uuid) whenever you save a new record using the Model::save method." http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html Regards Mike On 22 Sep 2014, at 15:48, romel javier gomez herrera wrote: > I use this type URL to edit records: > > /edit/1

belongsTo proper usage to avoid 1052 ambiguity?

2014-09-18 Thread mike
I am in the midst of migrating a large codebase from cake1.2 to the latest cake1.3 - all has been proceeding nicely until I hit an issue with one of the models and how find('all) is generating the SQL request. The find('all') request is in the comments class controller and requests 3 comment r

Re: Array to string conversion error when writing to db

2014-09-17 Thread Mike Karthauser
in the book http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html HTH. Mike On 17 Sep 2014, at 11:01, MarkB wrote: > Hi, > > I'm new to CakePHP, OOP and my PHP knowledge & skills could probably be > considered beginner++ level, so please have patience

Re: Cake View files

2014-09-16 Thread Mike Karthauser
group/cake-php. > For more options, visit https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 ..

Re: Model chaining for a find statement not returning expected results

2014-09-11 Thread Mike Karthauser
send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol

Re: Naming Conventions... Apply. Applys. Applies? Gobsmacked!

2014-09-09 Thread Mike Karthauser
; For more options, visit https://groups.google.com/d/optout. > > > -- > 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 > "

Re: Error menu.ctp

2014-09-04 Thread Mike Karthauser
gt; > Post->find('all',array('conditions' => > array('type'=>'page','online'=>1) )); return $pages; >} function show($id = null,$slug = null){ } > } > > if you have a idéa t

Re: Error menu.ctp

2014-09-03 Thread Mike Karthauser
> 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 an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@g

How to use ajax to update values using drop down button in cakephp 1.2

2014-07-24 Thread mike brandon
Hi all, I am quite new to cakephp. So ...things which are easy for you are quite difficult for me now. Plz help me to get it soon. my problem is i am not able get the edit field id and cant edit it as click on edit button which i made.evrry time i have to get my search done.then,my search disa

Re: Notice (8): Undefined variable: user [APP/View/Users/index.ctp, line 12]

2014-04-23 Thread Mike Karthauser
nsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.c

Re: Cake Console validation explained? Is there a document somewhere?

2014-03-06 Thread Mike Karthauser
send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@bri

Problems with sqlite3 on debian sid

2014-03-02 Thread Mike Dupont
: https://github.com/h4ck3rm1k3/cakephp/blob/sqlitedebug/lib/Cake/Model/Datasource/Database/Sqlite.php#L398 php5-sqlite version is 5.5.9+dfsg-1. any ideas? Anyone else with that problem? thanks, mike -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://www.flossk.org

Re: Cakephp without Save() function?

2013-12-17 Thread Mike Karthauser
w.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 an > email to cake-php+unsub

Re: CakePHP FileEngine and MemcacheEngine

2013-12-05 Thread Mike Karthauser
uspect you can’t find any cache files. .... Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebo

Re: Can the same web app mix cakephp with non-cakephp code?

2013-10-11 Thread Mike Karthauser
php. > For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 .

Re: converting array to string

2013-09-25 Thread Mike Karthauser
l',array('order'=>$order,'conditions'=>array($conditions))); Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 ..

Re: CakePhp doesn't read the script

2013-09-17 Thread Mike Karthauser
r...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Directo

Re: ajax validation with rules from model

2013-09-12 Thread Mike Karthauser
oups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk ww

Re: class AppHelper not found

2013-06-11 Thread mike karthauser
Hi On 11 Jun 2013, at 17:57, Safa Ksouri wrote: > salut, je suis debutante en cakephp , je suis entrin de suivre la creation du > Blog et j'ai rencontré cet erreur > 1 Fatal error: Class 'AppHelper' not found in > /home/safa/workspace/cakephp/lib/Cake/View/Helper/FormHelper.php on line 30 > N

Re: CSS in CakeEmail

2013-05-14 Thread Mike Karthauser
le sheet to email messages as email doesnt behave like html pages. you'll have to add inline styles to elements to get them to change accordingly. http://css-tricks.com/sending-nice-html-email-with-php/ HTH Mike Karthäuser Director, Brightstorm L

Re: Cakephp .htaccess/Mod_Rewrite with hosted site

2013-02-06 Thread mike karthauser
On 6 Feb 2013, at 20:51, Karl Smith wrote: > Currently you can access my website with something like this > www..com//source/now my question is how would I alter my > .htaccess file so I can access my site like this www..com/? I have > looked around on the web but I don't h

Re: A list of open source webapps to study ?

2012-12-06 Thread Mike Karthauser
ind 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 from this group, send email to

Solution for CakePHP newbies who are stuck with messages like - Error: PostController could not be found

2012-11-24 Thread Mike Pritchard
I struggled with the problems described in messages from new CakePHP users. The Cake install looked OK, but when I went through the Blog Adding a Layer tutorial I'd get these kinds of messages. Error: PostController could not be found Error: Create the class PostController below in file: app/C

Help with setting up db/classes for a noob

2012-10-30 Thread Mike Rogers
I am working on a pro sports stats website and I'm looking for advice on how to setup my tables as well as naming my classes (models/controllers). Let's say for example that I'm working with data from the NBA, NFL and MLB. Would it make sense to setup the tables with prefixes such as `nba_playe

Is it possible to share template files for multiple apps on the same domain?

2012-10-30 Thread Mike Rogers
d that maybe instead of making multiple apps I should have tried to keep them both under the same app. But I'm sure other people may be interested in this as well. Thanks! -Mike -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP ---

Re: fMath editor: "Error saving image on server:"

2012-10-15 Thread Mike Karthauser
are being written to? probably just an issue with folder permissions. .... Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 ..

Re: Cake can't load anything in webroot dir

2012-10-04 Thread Mike Griffin
Check if you need to use RewriteBase as well. You'll need it if the cakephp app isn't in the base directory as seen by the webserver (if the URL is something like http://example.com/not_the_base/ instead of http://example.com) Mike. On Thu, Oct 4, 2012 at 3:54 AM, Yasir Arafat Ha

Re: html attributes on 'year' form helper

2012-10-04 Thread Mike Griffin
they normally join in with other elements. It looks like you will have to manually add the div and label around the year helper. Mike. On Thu, Oct 4, 2012 at 12:06 AM, Paul Willis wrote: > Despite having read over the relevant sections of the book I can't seem to > get the stuff

Let's vote for CakePHP?

2012-10-03 Thread Mike Silakov
Hi all) Who works in PhpStorm, let's vote for CakePHP MVC support in IDE - http://youtrack.jetbrains.com/issue/WI-12681 Let's do as much as possible voice)) -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message beca

Re: Find method with multiple tables

2012-09-16 Thread Mike Griffin
Code, code, code, code, code. Show what you have tried. And saying something is urgent (has everything you posted been urgent?) won't help in most cases. -- Mike Griffin Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday 16 September 2012 at 05:09, Mr. Manager wrote: &

Re: How to link to a non cake php page, and where to put it?

2012-09-10 Thread Mike Griffin
ed? If it's in the cakePHP folder, you will have to mess with the .htaccess file so that cake doesn't try to intercept it. If it's outside the cakePHP folder, either use the absolute path or a relative path to get to it. Can you view the file on its own? Mike. -- You received this m

Re: Cakephp Print pdf

2012-09-04 Thread Mike Griffin
am make preview invoice. > > I hope that everyone can help me. > Post. Your. Code. How many times do you have to be asked to post your code? If you want some help, you will have to give something to be helped with. Either that or employ someone who knows how to program to write it all

Re: [Render problem] 5s to render any view

2012-08-31 Thread Mike Griffin
On Fri, Aug 31, 2012 at 4:37 PM, Mike Griffin wrote: > On Fri, Aug 31, 2012 at 3:44 PM, Alexandre Vasconcelos > wrote: >> - I commented fetch('content'); ?> in my default layout - >> the problem stopped > > What is the content that you are fetching? W

Re: [Render problem] 5s to render any view

2012-08-31 Thread Mike Griffin
On Fri, Aug 31, 2012 at 3:44 PM, Alexandre Vasconcelos wrote: > - I commented fetch('content'); ?> in my default layout - > the problem stopped What is the content that you are fetching? Where are you setting that variable? Mike. -- You received this message because you ar

Re: Wordplay Messing thing up

2012-08-31 Thread Mike Griffin
a linking table though (Roles_Users) I hope this helps. Mike. -- 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 from this group, send email to cak

Re: Cakephp Print pdf

2012-08-31 Thread Mike Griffin
What have you tried? Show some code so that it seems like you are trying things out instead of making very urgent appeals for help. Mike. On Fri, Aug 31, 2012 at 12:49 AM, Mr. Manager wrote: > Dear All, > > I have problem with creating autocomplete field my my customer id, which i

Re: got error Error: Call to a member function create() on a non-object on view

2012-08-16 Thread Mike Griffin
t; > my view is : > > index.ctp > == > create(null, array('action' => 'index'));?> > > Enter Your Name > input('name'); ?> > > end('Go');?> If you're using Cake2, the create bit should be written like this: $thi

Re: Need Help

2012-08-10 Thread Mike Griffin
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar wrote: > thanks Mike.. Let me try that . But the problem is my controller that i > generated by the bake is like > > user - > shift - > save so with 1 form 1 can save only one user, will it be possible for me to > save multiple

Re: Need Help

2012-08-10 Thread Mike Griffin
; $i<5; $i++) { // output the shifts here echo "[CODE FOR CHECKBOX]"; } // finish the row in the table echo ""; } echo ""; Mike. -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: Documentation on modifying default REST routes

2012-08-10 Thread Mike Griffin
ameter passed in is the id field. id field is a digit. What if I want > to pass in 2 or more parameters which are not primary keys? May I know if > this can be done in CakePHP? > What have you tried? You can get more documentation in the API http://api.cakephp.org/class/router#method-Router

Re: Documentation on modifying default REST routes

2012-08-10 Thread Mike Griffin
.cakephp.org/2.0/en/development/rest.html#custom-rest-routing Mike. -- 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 from this group, send email to cake-php+unsubs

Re: Documentation on modifying default REST routes

2012-08-09 Thread Mike Griffin
)); > > What does 'id'=>false or true means? I cannot find sufficient documentation > in the API documentation. > The id bit probably means that an id is being sent to the method. A view method needs an id to return the single thing that is being viewed whereas the index doesn&

Re: Archive old data from model's table

2012-07-26 Thread Mike Griffin
tions You could change your find query to only search for records created in the last however long you want to look at. Instead of $this->Report->find('all') do something like $this->Report->find('all', 'conditions' => array('created' < strtoti

Re: Cake PHP User Management Plugin Eagle

2012-07-26 Thread Mike Griffin
ttempt, do > refresh your cache and Re-Try to Login. You will be successful in logging > and checking and testing. > That doesn't sound like an amazing experience to me. Especially not one to pay for. Mike. -- Our newest site for the community: CakePHP Video Tutorials http:/

Re: router help

2012-07-21 Thread Mike Griffin
f it like a sieve with smaller holes the further down you get. Any specific rule only stops things that match it exactly whereas regex rules catch more things. To recap, put the specific rules at the top and less specific rules further down to make it work properly. Mike. -- Our newe

Re: Ingherited models that filter active users/records?

2012-07-20 Thread Mike Griffin
your-data.html#creating-custom-find-types) You can set whatever filters you want in there. Mike. -- 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 rel

Re: CakePDF Change page orientation

2012-07-20 Thread Mike Griffin
in the app/Config/bootstrap.php After you have loaded the plugin, use something like this: Configure::write('Pdf', array( 'orientation' => 'landscape' ) ); I haven't tested this so it may not work, but it should put you on the right track. Mike. -- Our newes

Re: Problem with adding records

2012-07-19 Thread Mike Griffin
Is there anything relevant in app/tmp/logs/error.log? Mike. On Sun, Jul 15, 2012 at 7:51 AM, mohit kumar wrote: > Now the problems are still same, I upgraded to the new version of cake > php. I have deleted and created the database again. > still i am getting same error. > >

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
ched]) > __backInnerAssociation => array([maximum depth reached]) > __backOriginalAssociation => array([maximum depth reached]) > __backContainableAssociation => array([maximum depth reached]) > findMethods => array( > [maximum depth rea

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
What is in the $this->request->data array? Mike On Fri, Jul 13, 2012 at 2:32 PM, mohit kumar wrote: > Thanks for your response, > > I have already deleted the user table once.. > The code is mostly used from the bake tool. > > Here is the snapshot of my UsersControll

Re: Cakephp with Extjs

2012-07-13 Thread Mike Griffin
On Fri, Jul 13, 2012 at 2:08 PM, Mr. Manager wrote: > Hi all, > > anyone know how to get and use extjs, especially integrate with cakephp. > Ooh, ooh, I do! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
was just a hunch that occured to me when I read it again. > so either theres a problem with OP's schema, or possibly a custom inflection > rule which is seeing "favorite" as plural, or I have no idea Kersacly. Mike. -- Our newest site for the community: CakePHP Video Tut

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
els when you use underscores? > > if the OP would drop their DB schema we might be able to get to the bottom > of it - but on the face of it is seems really strange to me > Yup, and run the SELECT statement I asked for before too. Mike. -- Our newest site for the community: C

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
re), hence looking for a Favourite table in the Advantage+'s first mail Mike. -- 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 unsubscrib

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
ts table. Can you change the name of the Favourite_Posts table to remove the underscore? What happens if you create the Favourite_Posts model by hand? Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cak

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
t the code here so we can see if the id is being set anywhere. What happens if you run: SELECT id,username FROM users WHERE id=0; Mike. -- 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 hel

Re: Page hit Statistic

2012-07-06 Thread Mike Karthauser
ject demo > is better. far better to keep this outside of your app. use google analytics or some form of server log parser such as awstats or webalizer. /2p Mike .... Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol

Re: How can I add months to a date?

2012-07-05 Thread Mike Griffin
[condition_id] => 2 [location_id] => 4 [ptype_id] => 4 > [begin_date] => 2012-07-04 [notes] => [user_id] => 4 )[Expense] => Array ( > [0] => Array ( [name] => Antcipated Expenses [type] => 1 [cost] => 0 > [begin_date] => 1362376800 ) ) ) > Mike. --

Re: How can I add months to a date?

2012-07-04 Thread Mike Griffin
time($future)); will give you the date two weeks in to the future. You might be able to work something out from these. Mike. -- 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 t

Re: saveAssociated with hasOne creates new entries instead of updating

2012-06-28 Thread Mike Griffin
to save the associated data. $request_data = $this->request->data; $request_data['UserProfile']['user_id'] = $this->request->data['User']['id']; $request_data['UserSetting']['user_id'] = $this->request->data['User&#

Re: cant retrive data from database into a table

2012-06-26 Thread Mike Griffin
I think you should look again at how to query using cake. You should look at find for a start instead of creating your own query. Also, are you using this function in a controller, a model or a view because there seems to be a mix of everything in there. Take the output part at the end (the table)

Re: Default layout and static pages How to?

2012-06-07 Thread Mike Griffin
p/View/Pages and then define routes for each of them Router::connect('/aboutus', array('controller' => 'pages', 'action' => 'display', 'aboutus')); Router::connect('/contact', array('controller' => 

Re: Missing Controller Error

2012-06-01 Thread Mike Griffin
nical expertise to comprehend there. You shouldn't need to touch the routes file at all. Mike. -- 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 Cake

Re: Naming conventions: how should I do this?

2012-05-28 Thread Mike Griffin
el, Controller, and Views. > AdminsController, Admin, [add_user, list_users, add_item]? It just doesn't > seem right. > A users model and controller with actions for add and index. An items model and controller with actions for add. Is this what you mean? Mike. -- Our newest site for the c

Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
On Fri, May 25, 2012 at 3:06 PM, Max Kiehnscherf wrote: > I've got xampp installed. Is that enough? > Do you see mysql in the output from phpinfo() ? Did you install mysql-server and mysql-client? Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.

Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
t; cake/libs/model/datasources/dbo/dbo_mysql.php on line 613 > max@max-ubuntu:~/akk/app$ > > What is the problem here? Have you got the php mysql packages installed? And mysql-server and mysql-client? Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: compare and update database records at once.

2012-05-25 Thread Mike Griffin
gt;find('first', array('conditions' => array('text' => $tp['text'] { // The entry is in the database, just update it $tp['id'] = $in_db['model']['id']; } else { // The entry is not in the database, create it $th

Re: Model Associations

2012-05-25 Thread Mike Griffin
On Thu, May 24, 2012 at 7:37 PM, hill180 wrote: > Solved:  But I don't know why.  This but this code puts the data where I > want it, and without the index error: > Good to hear, glad I could help. Mike -- Our newest site for the community: CakePHP Video Tutorials http://

Re: Model Associations

2012-05-24 Thread Mike Griffin
ry to return whatever values you want but leave in the {$__cakeID__$} bit as it is the value of the primary key. I hope this makes sense. Mike. -- 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

Re: Model Associations

2012-05-24 Thread Mike Griffin
00]: [Microsoft][SQL Server Native Client 11.0][SQL > Server]The multi-part identifier "Accounts.Account" could not be bound. > Are you saying that the Accounts.Account and Accounts.AccountID are different fields and have different values? What's the actual SQL statement t

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
ing) { do_stuff_with($thing); } I also think you've gone too deep with the foreach loops, given the array that you showed earlier anyway. Where did you have that code in your app? Is it in the controller? What is the name of the controller? Do you get anything back to the screen when you

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
On Wed, May 23, 2012 at 12:54 PM, teji infin wrote: > yes sir thing is the same bt actually in my code i get an array from > somewhere else now that array data i have to insert it in database. And what have you tried so far? Assuming you have a Deadline model, you could try something like this i

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
EATE TABLE deadlines ( id int(11) NOT NULL, auto_increment, text varchar(100) NOT NULL, date datetime, PRIMARY KEY (id) ); INSERT INTO deadlines (text, date) VALUES ("My First Project Completed", "2011-10-12 00:00:00"); Is this what you mean? This isn't really a ca

Re: Need help populating a select box

2012-05-23 Thread Mike Griffin
h storing the id > into the product_icons' icon_id field. > > Hope this makes sense. Thanks for any help. That's because you are passing the result of a findAll request to the input tag. Have a look at find('list') http://book.cakephp.org/2.0/en/models/retrieving-your-da

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

2012-05-15 Thread Mike Griffin
=> true) > )); > > I get this message: > The requested address '/details.php?id=4863' was not found on this server. > >  What is wrong with my Router? Are you trying to access /details.php?id=4863 as the url? That's not how cake works. Try going to /details

Re: Little help with routes and links

2012-05-08 Thread Mike Griffin
7; => null), array( 'colour' => '\w+', 'item' => '\w+', 'number' => '\d+' ) ); Also, have a look at http://book.cakephp.org/2.0/en/development/routing.html#passing-parameters-to-action Mike. -- Our

Re: Get the first link of a post ?

2012-04-27 Thread Mike Griffin
; > } > > (...) > > How can I make this work in my view ? Thanks a lot. What are you matching against? Is it something in the $post variable? Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://

Re: cakephp automatically adding 3 drop down boxes for birthdate

2012-04-23 Thread Mike Griffin
ut cakephp automatically adding 3 drop down boxes for year,month & day. > > How can i remove dropdown boxes? Set the type of input field that you want to use in the input tag. $this->Form->input(('birthdate', array('id' => 'select2', 'label'=>

Re: Query produced by $this->User->save($this->data); gives error

2012-04-20 Thread Mike Griffin
>User->save($this->data); This is assuming that you don't have form fields for those parts. If you do, you will have to make sure that they are being passed properly from the form. Check the output of $this->data to make sure they are being set properly. Mike. -- Our newes

Re: Form Helper usage question

2012-04-06 Thread Mike Griffin
ssword', array ('type'=>'password', > 'label'=>'Contraseña')); >   $this->Form->end('Agregar'); > > ?> > > > > All I get is the "Agregar Usuario" title, no form tags. I've tried to >

Re: How to stop redirecting to login page

2012-04-06 Thread Mike Griffin
er. > > I still cannot figure out why its automatically getting sent to the login > though. > It's probably because '/' is not an action. It should be something like this: $this->Auth->allow('index', 'login', 'logout', 'confirm&

Re: How to stop redirecting to login page

2012-04-05 Thread Mike Griffin
the action. Does that make sense or have I confused it? Don't forget to call parent::beforeFilter(); in the beforeFilter function in your controller so that the appController one still gets called. Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org C

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
27;=>'formfield', >     'error' => array( >     'wrap' => 'div', >     'class' => 'formerror' >     ) >     )); > > Thanks a lot > Fantastic, good

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
pe_id', 'div'=>'formfield', 'error' => array( 'wrap' => 'div', 'class' => 'formerror' ) )); Note t

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
;'formfield', >                 'error' => array( >                 'wrap' => 'div', >                 'class' => 'formerror' >                 ) >                 )

Re: redirecting problem

2012-04-02 Thread Mike Griffin
ct line to something like $this->redirect(array('controller' => 'sellers', 'action' => 'message')); Are there any checks in the "message" action that might be redirecting back to where it came from? Mike. -- Our newest site for the community

Re: picture virus problem!!!!!

2012-04-02 Thread Mike Griffin
n/function.finfo-file.php for more details. Mike -- 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: problem of captcha

2012-03-29 Thread Mike Griffin
On Thu, Mar 29, 2012 at 13:07, LITTO CHACKO wrote: > hello ,   @mike > > > my local server is linux centos.. my main server is also linux... i > don't know what is problem with server.. everything works fine in > local...but when iam uploading it to the mainserver..i

Re: problem of captcha

2012-03-29 Thread Mike Griffin
On Thu, Mar 29, 2012 at 10:49, LITTO CHACKO wrote: > @mike > nothing...they are not shiowing any error messages?? and when > i tried to print all session variables.. it prints null i can't > continue my project due to this..pls help What are the differences between

Re: problem of captcha

2012-03-29 Thread Mike Griffin
On Thu, Mar 29, 2012 at 07:54, LITTO CHACKO wrote: > My captcha session working fine in local server but it is not working > in main server. Are you getting any error messages? What do the webserver access and error logs say? Mike. -- Our newest site for the community: CakePHP Video Tut

  1   2   3   4   5   6   >