Is anyone writing an introductory book about CakePHP 3 aimed at beginners?
I'm asking because I've seen books about other frameworks such as Yii and
Laravel. They can typically be found on LeanPub, Amazon / Kindle, and
Paktpub.com etc. But I have not seen any CakePHP 3 books. The most recent
bo
In CakePHP 2.x, FormHelper::inputs doesn't make buttons. It makes input
elements. If you want a button, try using FormHelper::submit for a submit
button, or in this case FormHelper::button as in:
echo $this->Form->button('Cancel upload',
array('type' => 'reset',
'class' => 'btn bt
I'm new to CakePhp framework and followed the blog tutorial. Everything
went smooth until authentication part.
This is my login method from UsersControllers.php, the debug line always
returns false.
public function login()
{
if ($this->request->is('post')) {
debug($thi
First you need to identify what makes a file unique. Is it the contents of
a row? a set of rows? a row ID? Second, you need to write code to query
your existing database to see if your uploaded file has already been added
(run a SELECT to see if the rows you are about to add have already been
a
If this happens, start checking logs. CakePHP logs errors to /tmp/, and
your server access and error logs should also be reviewed. CakePHP depends
on an operating system, a web server, and a database server. Each of these
need to be up and running for Cake to do its thing.
--
Like Us on FaceBo
It looks like your `posts` table doesn't have a `user_id` column. CakePHP
convention wants it to have one so Cake can make the association "Posts
belongs to Users".
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this mess
It looks like your `posts` table doesn't have a `user_id` column. CakePHP
convention wants it to have one so Cake can make the association "Posts
belongs to Users".
On Friday, May 23, 2014 12:56:48 AM UTC-4, Andrew Townsley wrote:
>
> I am getting an error on a simple display of 2 tables as i am
I think the result you seek is the default functionality? Suggestions:
1. First set it up exactly as directed in the box without overriding, and
get it working. This makes you certain of correct installation, schema
set-up, etc.
2. Next extend the controller as you have, with the following extra
I think the result you seek is the default functionality? Suggestions:
1. First set it up exactly as directed in the box without overriding, and
get it working. This makes you certain of correct installation, schema
set-up, etc.
2. Next extend the controller as you have, with the following extra
I think that the result you are expecting is simply to have the default
plugin functionality?
Suggestions:
1. First install and get it working out-of-the-box without any overriding.
2. After that, come back to what you've started (override UsersController
as directed in the documentation) and als
Collection controller, want to use the same view file (display_collection)
to display the multiple types of collections. Very basic, no plugins
involved. Pretty much like straight out of the book.
Problem is that the default view for the action is being rendered.
public function CollectionOne(
Well, I figured it out. :: facepalm::
Typos are fail. :|
On Monday, December 9, 2013 6:55:37 PM UTC-6, Kristen M wrote:
>
>
> I need to include a couple of models in various controllers. However, when
> I try to put the models in $uses() they invariably throw non-object errors
>
I need to include a couple of models in various controllers. However, when
I try to put the models in $uses() they invariably throw non-object errors
even when not being called, and even when the model is totally empty.
However, ONE model ("User") will play nice.
There are no relationships b
Great. thanks!
On Friday, December 6, 2013 12:56:55 PM UTC-5, Leandro Machado Pereira
wrote:
>
> I don't see any problem.
>
> I think this is normal.
>
>
> 2013/12/6 Dave M. >
>
>> I considered that approach. But what about the rest of the pages?
>>
his.
>
> In you controller
> $this->set('wrapperID', $myWrapperID);
>
> In your layout
> echo $wrapperID;
>
> Best regards;
>
>
> 2013/12/6 Dave M. >
>
>> Let's say I have a default layout containing this body
>> (overly-simplified):
Let's say I have a default layout containing this body (overly-simplified):
fetch('content'); ?>
I have a need to add a class to the wrapper id for a couple of pages on my
site.
It seems like creating a new layout is overkill for just one minor addition
when everything inside
Is this possible?
Situation:
Users have many Items
I want to pull a User's total inventory, which sits in the inventory table.
But I also need to pull some fields from the master item table (like item
name) or to be able to pull items only be their type (this data sits in the
master table)
I
I don't think the class option works for multiple checkboxes.
What you can do is specify a div and work off of that (you can also reduce
your js code):
echo $this->Form->input("Country", array("options" =>
$viewData["countryList"], "multiple" => "checkbox", "onclick" =>
"resetSelectAll();" ,
ver_cost" => 20));
}
}
}
?>
On Sunday, November 17, 2013 4:42:02 AM UTC-6, John Andersen wrote:
>
> Hi Kristen M
>
> Please ensure that you are using the correct model name; ensure that the
> model filename is correct, etc.
>
> Also show us the code fo
There are several ways to do this, but in my application, only one seems to
work.
$this -> loadModel("Model");
>From my reading it seems there are an assortment of ways to include a Model
that doesn't require re-loading a Model everytime I need it (assuming I
need it multiple times within a c
Yeah, the point of the exercise is to do things the "Cake Way" and take
advantage of all things automagical and Cake. ;)
After puzzling over the docs for a bit and realizing it's not bad form to
have a controller use multiple models, I decided that splitting the
existing classes into a model a
I'm not a new programmer (I'd say advanced beginner/intermediate) but I'm
quite new to Cake and MVC in general.
I've decided best way to learn CakePHP and MVC is to take an existing
(functional, live) project and port it to Cake for kicks. Get the grand
tour of all the basics.
In my existing
But in this case you have 2 database. One is 'master' and another one is
'default'. So when you are saving data to 'master' and updating data by
'default' or deleting data by 'default'. Then how this 2 database will be
synchronized. Data can be lost or any damage? Can you tell me the complete
f
Hi,
let's say I have two models, Tag HABTM Post. How do I tell the Tag
paginator to order by the amount of posts the tag is used on?
Ex.:
Cake (43)
Pie (31)
Cookie (12)
Petit Four (2)
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
Y
I had the same issue, and ended up hard-coding the full css link in the
head of the pdf layout.
eg. http://www.mysite.com/css/styles.css"; />
Not the most optimal solution, but it got me up and running.
On Wednesday, January 23, 2013 8:19:04 AM UTC-5, Jeremy Burns wrote:
>
> So I got Ceeram's
ager, and I want a manager to manage just the hotels in
> his city. but this hotels can be created by another user(admin), is it
> possible? I did it with isAuthorized() method, but it requires a lot of
> "code (ugly code)° :p
>
> Paulo
>
> On Monday, December 24
Hi Paulo: You are describing row-level access control, and I am doing that
with CakePHP 2.0 using a modified version of Daniel Vecchiato's WhoDidIt
Model Behavior
(https://github.com/danfreak/4cakephp/tree/master/models/behaviors). Then I
check in the controller to see if the id in the table fo
I always would be very happy about an update of the cheat sheet! :)
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send e
This code snippet needs refactoring in order to use JsHelper, but it works:
controller code (Controllers/PeopleController.php):
function autoComplete() {
$this->autoRender = false;
$search_string = trim($this->request->query['term']);
if (!is_null($search_string) && $search_string != '') {
$people
291
>
> not sure about Mozilla...
>
> Andras Kende
> http://www.kende.com
>
>
> On Nov 10, 2012, at 3:15 AM, Chandru M >
> wrote:
>
> Hi all,
>
> I am struck with this peculiar problem for a long time.
>
> I have created a simple login page using the auth
A. To debug, I'd insert the line:
console.log(load + _this.find('option:selected').val());
just above your $.ajax() call. Then watch your Javascript console when
running the page to see what URL is being submitted and try submitting it
manually.
- Rob
On Friday, November 16, 2012 1:53:13 AM UTC-
Hi all,
I am struck with this peculiar problem for a long time.
I have created a simple login page using the auth component.
It seems the session is not getting expired when the browser is closed.
The user gets automatically logged in when the browser is open again.
I have used the suggesti
Hi all,
I am struck with this peculiar problem for a long time.
I have created a simple login page using the auth component.
It seems the session is not getting expired when the browser is closed.
The user gets automatically logged in when the browser is open again.
I have used the suggestions
1.
http://book.cakephp.org/2.0/en/appendices/migrating-from-cakephp-1-2-to-1-3.html
2. http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html
I would definitely run through #1 just to make sure there are no deprecated
items still in use.
On Thursday, November 1, 2012 8:07:46 AM UT
Also, to use the $c variable in the view, you need to set it in the
controller:
$this->set('c', $this->M->getX());
http://book.cakephp.org/2.0/en/controllers.html#Controller::set
On Sunday, October 14, 2012 10:08:56 PM UTC-4, vinny M wrote:
>
> He's right seems l
I think the problem is that instead of supplying an answer to a question
('Be sure to add $actsAs = array('Containable); to your appModel!'), you
instead provide a link to a blog post on your site which says 'Be sure to
add $actsAs = array('Containable); to your appModel!'. A post which was
cre
ethod
>>> *
>>> * View an operation
>>> *
>>> * @param string $id
>>> * @return void
>>> */
>>> public function view($id = null) {
>>> $this->Operation->id = $id;
>>> if (!$th
ill thinking about this.
On Monday, October 8, 2012 7:45:39 AM UTC-4, José Lorenzo wrote:
>
> You need the alias as cricket said and in your find you need 'contain' =>
> array('OpUser', 'User')
>
> El lunes, 8 de octubre de 2012 01:50:05 UTC+2, Greg
another wild guess: have you attached the Containable behavior?
In your AppModel:
public $actsAs = array('Containable');
-dave
On Saturday, October 6, 2012 2:58:54 AM UTC-4, Greg wrote:
>
> Sorry to keep bumping, but this is really doing my head in...
>
> The only "solution" i have is to load th
Hey you can test this one :
https://github.com/malikov/cakephp2.0-image-upload it's simple and straight
forward.
On Tuesday, October 16, 2007 4:37:47 AM UTC-7, Arendp wrote:
>
> Hi all!
>
> I have been searching for a decent file or image upload script in
> CakePHP. However I have difficulties i
look at your parentheses.
On Saturday, September 8, 2012 1:25:43 PM UTC-4, girl wrote:
>
> thanks a lottt for reply...
> but I print
>
> $code=$params['code'];
>
> the problem I want to change it when if statement is true and I do
> replacement
>
>
>
--
You received this message because you
I suggest you throw a debug($weeklyroster) into your view to see how the
array is actually structured. I would assume that you would want
$weeklyroster[0]['Weeklyroster']['week'],
$weeklyroster[1]['Weeklyroster']['week'],
etc.
On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote:
>
> Hi F
I've discovered this doesn't happen when i am logged in to the app itself.
I am quite confused.
On Monday, July 23, 2012 10:58:34 AM UTC-4, Dave M. wrote:
>
> After upgrading to 2.2.1 from 2.0.x some of my controller tests are
> failing.
> It seems as if a mocked Auth comp
After upgrading to 2.2.1 from 2.0.x some of my controller tests are
failing.
It seems as if a mocked Auth component does not survive multiple testAction
calls. Am I doing something wrong here or is this expected?
CandidatesControllerTest.php
public function testExportAdmin() {
$Candidates = $t
what are the relations of the models ? does Events hasMany with feedings
and characters ?
--
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
users(id, name, email,...)
skills (id, name, description..)
users_skills (id, user_id, skill_id) --> HABTM join table
--
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 C
helping me find my error. - RM
On Sunday, May 27, 2012 8:13:31 AM UTC-4, Rob M wrote:
>
> Attempting to migrate my app from 1.3 to 2.1; using xampp. I'm running
> into an error in the console when I use AclExtras to recover aco ('recover
> aro' produces no erro
Why dont you use an Existing plugin instead of writing all this ?
--
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
I am implementing Google Analytics API and using
https://code.google.com/p/google-api-php-client/ as Vendors.
I have built a small app in PHP where i need to do the following to have
access to the Google accounts
// Include Required Libraries
require_once 'lib/apiClient.php';
require_once 'lib
$this->Model->saveField('columnName', $data);
--
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 emai
It sounds like a HABTM table is precisely what you need. Please elaborate
on your requirement 'cannot do HABTM due to storing meta info'. - Rob
On Friday, May 25, 2012 9:09:59 PM UTC-4, Benjamin Allison wrote:
>
> I have two models: Users and Surveys. In my Users "index" view, each User
> row ha
Attempting to migrate my app from 1.3 to 2.1; using xampp. I'm running into
an error in the console when I use AclExtras to recover aco ('recover aro'
produces no error). The same error is encountered when attempting
'aco_sync'. Would you perhaps recognize the stack trace and suggest where
to l
On May 18, 2:28 pm, AD7six wrote:
> On Friday, 18 May 2012 18:09:35 UTC+2, Josh M wrote:
>
> > Hello all,
>
> > I am having issues using the DOMPDF pdf generation library in my
> > Cake 2.1 application. I am building an inventory management
> > applicati
Hello all,
I am having issues using the DOMPDF pdf generation library in my
Cake 2.1 application. I am building an inventory management
application for use at my company and I am trying to dynamically
generate pdfs my users can print as stock labels. However, when I
attempt to stream to pdf
Without the redirect Cake should take you back to the 'instructions' view.
Have you tried removing the redirect line to see what happens (assuming the
instructions action you have here is in the instructions controller)?
George
On Sat, Mar 10, 2012 at 8:54 PM, Brian Bowler wrote:
> So I have th
se a tabela possui chave primaria no modelo declare
var $primary = "nomeCampo";
assim, será a chave primária, caso seja composta, utilize array
var $primary = array("Campo1","Campo2");
Em 5 de janeiro de 2012 16:14, Filippi Rizzi escreveu:
> Olá! Trabalho com o cake a alguns anos, e sempre u
use jaspter reports with PHP to generate document files
2012/1/3 euromark
> @roundrightfarm
> I dont think such a helper is part of the core, though :)
>
>
> On 3 Jan., 17:25, "Yves S. Garret" wrote:
> > That sounds interesting, but will it work with my requirement of having
> the
> > header an
if they have the absolute path, use const WEBROOT_DIR
2012/1/2 Tilen Majerle
> he is probably need absolute path for webroot, not browser :)
> --
> Lep pozdrav, Tilen Majerle
> http://majerle.eu
>
>
>
> 2012/1/2 Laerte M. Rodrigues
>
>> I use Cakephp 2.0
I use Cakephp 2.0 and the static method Helper::url('/') return the URL
from WebRoot
2012/1/2 清水紘己
> >Laerte M. Rodrigues
> You meant Router::url(), right?
>
> It will return proper value through web, but not in cli at edge cases.
> Recommended way is manually t
use Helper::url('/')
2012/1/2 byqsri
> Hi
> I would ask how can I access to "$this->webroot" controller's variable
> from a model?
> Many Thanks
> Marco
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://a
verify if the rewrite_module is enabled in your apache server
2012/1/1 Wanted
> Believe me I have done Everything according to the tutorialsin
> my case its http://localhost/cakephp1.3/
>
> and Everything is green in the end
>
> but when I goto http://localhost/cakephp1.3/posts it
What about one with a 42u rack in his random location without Internet,
operating quite securely, and avoiding theft or notice?
Sent from my iPhone
On Dec 21, 2011, at 4:50 PM, euromark wrote:
> a (web)programmer that doesnt have internet? :)
>
>
> On 21 Dez., 23:56, Ucha19871 wrote:
>> ooh
Hugo Massaroli
2011/11/30 phpMagpie
> Option 2 does not look normalized to me as data1, data2, data3 should be
> in an associated table Process hasMany Data <-> Data belongsTo Process.
>
It's normalized because data1, data2 and data3 are always the same fields,
they don't change with the proce
Ah... an another question, what will happen if I add a new process, will
always need to have a bigger index than the previous processes right?
There's a way to have an better identifier in the fields with a hasMany?
Something like:
echo $this->Form->input("Process..cost_type");
echo $this->Form->
Hi all!
I have a problem and I'm not sure about the a solution. I have two options
of creating a "process" table.
Option 1: table with 100 or more fields. Ugly, I don't want this. Fields:
process1_costtype1_data1
process1_costtype1_data2
process1_costtype1_data3
process1_costtype2_data1
..etc.
NetBeans is nice.
--
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+unsubscr...@googl
Because my debug log file in 1 day grows to 96 MB of data :P (in a test
environment!), and it will probably slow the site's performance.
--
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 o
I tried to disable debug.log and error.log logging but I couldn't. I've
tried putting debug in 0 and log in 0 in core.php but that didn't work. I've
tried this:
class CakeLog {
/**
* Writes given message to a log file in the logs directory.
*
* @param string $type Type of log, becomes part of t
Try to change the security level, I think cakephp block acess from other
domains, depending the level of security.
2011/9/16 WebbedIT
> There is a reason they are slightly more involved and in your eyes
> excessive, because they ensure a level of security!
>
> You should never accept POST data w
Hi, I'm using amchart to make graphics, I need to generate an XML like this:
-0.307
-0.168
-0.073
-0.027
-0.251
But:
$parsed = array(
'chart'=>array(
'graphs'=>array(
array(
'graph'=>array(
Can I bake a Model, Controller and View in the same command? It would be
wonderful :D
Regards!
Hugo
--
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 q
Indeed. Since the Uploadify script uses different headers, CakePHP
wont recognize the session of the user! You can sent along the session
id as parameter and then in your controller beforeFilter check for
uploadify and session_id to restore the usersession if applicable.
See:
http://cakephp.19694
cake file has executable permissions? The path is correct? How did you set
up your cron, with crontab -e?
2011/3/28 Cakenya
> I hosted a cakePHP site on vodahost that I want a cron job to be
> sending my customers emails.
> Below is my cron:
> /home/aaorwbwc/public_html/tumasenti/cake/console/ca
I don't have experience with high traffic applications, but I've used
CakePHP and it has alot of cache options you can use. You just have to know
how to use it.
2011/2/2 100rk
> > In several places I read that CakePHP is not suitable for these
> > purposes.
>
> Links, please. Do not expect speed
hi
i am new to cakephp . how can i install it and work it .
i use uniserver as a webserver in local.
please tell to me
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask
$time->niceShort(parameters);
and
$this->Time->niceShort(parameters);
are the same. $this->HelperName was implemented because the conflicts with
possibly local "time" variables you may have created.
2010/12/9 Ryan Schmidt
>
> On Dec 9, 2010, at 14:23, cake-learner wrote:
>
> > $time->niceSho
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
That line in the .po file fix the plural problem with po edit
2010/12/8 Hugo M
> Ok cache seems to have gone now, and now I can start again. The only thing
> I want is translate the Time Helper strings. Should I run i18n bake ta
file
from mi pot file).
2010/12/8 Hugo M
> WTF is going on? There is a Cache for translations? I don't know how but I
> was able to translate "week" to "semana", but now I tried to change "semana"
> to something different "semanadsgfdg" an
l translating "week" to "semana". Im.. scared?
2010/12/6 Hugo M
> Not working. When I go to i18n.php // method translate:
>
> debug($_this):
>
> I get:
>
> I18n Object
> (
> [l10n] => L10n Object
> (
> [language] => En
Not working. When I go to i18n.php // method translate:
debug($_this):
I get:
I18n Object
(
[l10n] => L10n Object
(
[language] => English (United States)
[languagePath] => Array
(
[0] => eng
)
[l
I couldn't solve this problem, any help will be appreciated :S
2010/12/4 Hugo M
> I have in locale/esp/LC_MESSAGES/default.po:
>
> msgid "on %s"
> msgstr "el %s"
>
> msgid "%s ago"
> msgstr "hace %s"
>
> msgid &qu
I have in locale/esp/LC_MESSAGES/default.po:
msgid "on %s"
msgstr "el %s"
msgid "%s ago"
msgstr "hace %s"
msgid "Yesterday, %s"
msgstr "Ayer, %s"
msgid "Today, %s"
msgstr "Hoy %s"
msgid "week"
msgid_plural "weeks"
msgstr[0] "semana"
msgstr[1] "semanas"
In app_controller before_filter I ha
Hi! I need to have a offer model that has comments. How can I do that
definition? Because comments would be an array, and I don't see the array
type in the plugin samples ( Yasushi Ichikaway plugin)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP rela
Lol, nothing to do with MongoDB, I had $this->Auth->authorize = 'controller'
in mi AppController.
2010/11/17 Hugo M
> Hi! I'm using this MongoDB plugin:
> https://github.com/ichikaway/cakephp-mongodb
>
> I have a problem with Auth Component. I can login, but I
Hi! I'm using this MongoDB plugin:
https://github.com/ichikaway/cakephp-mongodb
I have a problem with Auth Component. I can login, but I can't access to the
pages that are not listed in $this->Auth->allow() function. But I'm logged
in! Maybe this has something to do with the fact that MongoDB uses
I think that you can just call de sp , something like this
$this->query("call sp_YourStoredProcedure")
2010/10/1 Ma'moon
> I really think that the core developers should include this feature in
> CakePHP 2.0 since this is getting into a big demand all over the frameworks
> users, for example Yii
thin a form field are
> automatically converted to select dropdowns and converted back into a
> timestamp before saving.
>
> On Oct 1, 8:55 am, "j.blotus" wrote:
> > just put it in your beforeSave function and it will do whatever you
> > need
> >
> > On Oct
7;;
>
> in the beforeSave() of the model:
>
>/**
> * Before saving set up created and modified so we know when record
> was changed
> *
> * @return boolean true always
> */
>function beforeSave() {
>// Alternate colu
already get populated with 'now'?
>
> Jeremy Burns
> *Class Outfit*
> *
> *
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
> On 1 Oct 2010, at 15:36, Hugo M wrote:
>
> There's a way to save timestamp field without manually joining the hour,
There's a way to save timestamp field without manually joining the hour,
day, year, etc. fields?
$this->Form->input('timestampfield');
When I do that, in backend I get:
[timestampfield] => Array
(
[month] => 10
[day] => 01
The solution: security level in low. But I don't really understand what is
happening down there :p.
2010/9/30 Hugo M
> Basically, I'm loosing my CakePHP session after using Facebook's
> multifriend selector... any ideas? :S Is this something related with Cake
> securit
Basically, I'm loosing my CakePHP session after using Facebook's multifriend
selector... any ideas? :S Is this something related with Cake security??
2010/9/30 Hugo M
> Hi! I'm making a FB Connect site. I have a multi-friend selector. When i
> send invitations, the user is
Hi! I'm making a FB Connect site. I have a multi-friend selector. When i
send invitations, the user is sent to root. Root is albums/index (because
there are picture cards albums). Because the application could have only one
album, when I just have one album I sent the user straight to that album.
Hi
I have two issues on JsHelper.
Could someone help me, please?
1) The key "data" in $options parameter of "request" function outputs
a javascript code between quotes. So when I use something like data =>
$js->get("#myForm")->
serializeForm() it doesn't work. In "submit" function the data
parame
Is not a bad idea. But, there isn't a way to get the database connection
from cake and handle db pointers? Anyway, that is just curiosity, your
solution seems to be right for me :), thanks!
2010/9/2 Jon Bennett
> > Hi! I want to handle database pointers because I have a big database and
> > memo
Hi! I want to handle database pointers because I have a big database and
memory is not enough (I already added memory in php.ini and put recursive in
-1), I have like 9000 registers and I want to write all that registers in a
file.
There's a way to do something like mysql_fetch_array with datasour
javascript helper is used in default.ctp.
when "Missing Controller", javascript is not loaded. i thought pages
controller is reading 404.ctp so i copied it from cake/lib to app/
controller and added Javascript helper but it didn't work. i turned on
debug 2 and found the values passed to view from
of this models (StepsUser,
Question, Step) has access to QuestionsUser table. In app controller:
var $uses = array('User');
User has access to QuestionsUser table (User has many Questions), I think
QuestionsUser object is instanciated when User model is loaded, changing de
order somehow sol
Hi!, this is the file:
app/models/questions_user.php
2010/8/24 Sam
> rename questions_users.php to questions_user.php.
>
> On Aug 24, 2:28 pm, "j.blotus" wrote:
> > please dump the contents of your model file, and the name of the file
> > for us
> >
lotus
> Do you get a missing table error?
>
> Often these errors can be caused by incorrect file naming or class
> naming.
>
> On Aug 24, 12:03 pm, Hugo M wrote:
> > I have a model QuestionsUser that has some relationships (belongsTo user,
> > question and answer). Th
1 - 100 of 295 matches
Mail list logo