Hi All,
So I ditched the bundle and went searching for another source. Lo
and behold I found this:
http://www.etoxified.com/cakephp-bundle-for-textmate
It requires git, but I downloaded it refreshed my bundles and
voila, it worked. I'm running textmate 1.5.8, I'm wondering if there
are
Hi,
I changed the port to 465 and tried 'smtp.gmail.com' for the host.
Also used the host 'ssl://smtp.gmail.com'
The email works fine with sendmail.
Anyone know if tsl/ssl is supported?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
But your example was about double quotes that is wrong INITIALLY.
Btw, on my cakes there are no problems with single quotes in tags
attributes at all. What exact cake version do you have?
On Sep 2, 3:48 pm, Kana wrote:
> Quoting myself:
> "I already mentioned trying both SINGLE quotes and DOUBL
OOOPS!!!
where I said
$this->Auth->actionPath = 'controllers/'
I really meant
auth->Authorize='crud'
sorry for the confusion!!!
mig_akira wrote:
>
> Hello everyone.
>
> I'm using auth and acl in my website, and I'm using the 'crud' way to
> grant or deny access. Everything is fine, excep
Hello everyone.
I'm using auth and acl in my website, and I'm using the 'controllers' way to
grant or deny access. Everything is fine, except that I don't know how to
grant or deny access to a non-standard action in a controller.
For example, in my postsController, I have the actions add, read
A few things your doing wrong and should change immediately.
Do not call error(), text() (or the other variants, select(), radio
()).
The following code:
label('Devotion.name', 'Name of Devotion'); ?
>
error('Devotion.name'); ?>
text('Devotion.name', array('size' =>
'80'
Here is a little clearer explanation of what I'm doing and what's
going wrong:
function beforeValidate() {
$this->data['Model']['new_var'] = "my new variable";
}
then in my view I do:
pr($this->data);
My new_var variable is not present. Anyone know what's going on?
On Sep 2, 3:15 pm, Kyle D
My reasoning behind me wanting to do it this way is because I have an
address,city, region, and country fields on my form, and then in my
beforeValidate(), I am taking those values and using the Google Map
API and if it's a real address w/ a accuracy level of 8, then I add in
the lat, lng, and acc
So I wasn't mis-remembering (?) when I said that at least one other
person ran into this problem due to some whitespace after the "?>" in
that file. Different issue but same outcome, based on a problem with
that file.
On Wed, Sep 2, 2009 at 6:20 PM, ajoberstar wrote:
>
> So I finally gave up tryi
You'd have to do a find('count') with a condition on
$this->Auth->user('id') (or however they're associated) at the top of
the action.
On Wed, Sep 2, 2009 at 6:08 PM, Dave Maharaj ::
WidePixels.com wrote:
> This might be something simple that has an easy solution.
>
> I want to limit the number o
beforeValidate() is a model method. Model has it's own $data. But the
$this->data you're thinking of (I think) is handed from the controller
to the view. You would have to modify the controller's array, IOW.
Perhaps you'd be better off adding those 2 values in
Model::beforeSave().
On Wed, Sep 2,
$form->input('Disciplines.0.discipline_id', array('label'=>'Discipline
1', 'type'=>'select',
'selected'=>$html->value('Disciplines.0.discipline_id'),
'options'=>$disciplines, 'multiple'=>'false', 'empty'=>'Choose One'))
There are multiple selection boxes in the view so thats why I needed
to add
I am having some problem with adding additional administrative routing to my
app.
I have
Configure::write('Routing.admin', 'admin');
Log in as admin and all the urls have /admin/ in front of the controller and
action and works perfect (did not have to add any Router::connect custom
routing)
I
So I finally gave up trying to find the error and re-extracted the
files from the tar.bz2 I downloaded from Cakeforge. I saw that that
worked before changing anything, but the only thing different between
my broken install and this was the database.php config file. So I
added that again to see w
I am using a select field and even though I have it set to single selection
only, it still saves its post data as an array.
I want : $this->data['User']['setting'] = 3
instead of : $this->data['User']['setting'][0] = 3
Is there something I need to do for this to be formatted correctly, or do I
j
Thats not what im asking for. Im asking for the $form->input() code
that generates the select in the view.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php
Random thought - I'll be trying this tomorrow or sometime next week,
but... Would the autoload file be able to be called as a vendor
include as well? So long as I call it first, I'm wondering if that
would possibly solve the issue. An autoloader would still have to be
customized for all ez Comp
This is what is being generated:
Array
(
[Devotion] => Array
(
[name] => testcase
[description] => A cool Test case
)
[Disciplines] => Array
(
[0] => Array
(
[discipline_id] => Array
fow www.john.com $_SERVER['SERVER_NAME'] is john.com
$site = $this->Website->findByDomain($_SERVER['SERVER_NAME']);
...
On Sep 2, 9:29 pm, "Fernando Z. Bob" wrote:
> Hello everyone.
> My name is Fernando. I`m from Brazil.
> This is my first message in the group. I have one question about
> cak
Well it would be nice to see the $form code generating the select.
--~--~-~--~~~---~--~~
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 th
you can create a custom shell to do it...
On Wed, Sep 2, 2009 at 4:21 PM, Miles J wrote:
>
> Cake doesnt import x amount of rows into your database. I ran into the
> same problem months ago, I had to write my own scripts to populate
> with test data.
> >
>
--~--~-~--~~~-
This might be something simple that has an easy solution.
I want to limit the number of images a User can have (create) for a specific
gallery. Top 10 images can only have 10 images obviously...
I figured a simple query to count images that are uploaded in the action and
if less than 10 allow to
I am having a little bit of trouble w/ my $this->data. When someone
submits the form, in my beforeValidate() method, I create two new
variables inside of $this->data ($this->data['Model']['lat'] && $this-
>data['Model']['lng'])...I I then want to pass those back to the view
if the validation of th
Configure::write('debug',2);
Schreck
-Original Message-
From: Michael Gaiser
Date: Wed, 2 Sep 2009 22:08:42
To:
Subject: Debugging SQL's
How do I view the sql generated by my controller's add() function? I need to
see why some code isn't working and was wondering if there is an easy
Hello everyone.
My name is Fernando. I`m from Brazil.
This is my first message in the group. I have one question about
cake-solutions.
Let me explation what i mean.
Imagine that i have the table Websites which contains 5 fields.
id int(5)
name varchar(100)
domain varchar (255)
country varchar(50)
Set debug to 1 or 2 and it should display the SQL output at the bottom
of the page.
--~--~-~--~~~---~--~~
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 un
anyone got a clue ?
I am still very confused on this matter. I have tried moving from
"recursive" to "containable" with no luck.
Thank you.
On Jul 28, 5:31 pm, iFeghali wrote:
> Hello All,
>
> I found myself stuck for a week in an issue that I would really
> appreciate any kind of help. Thats m
How do I view the sql generated by my controller's add() function? I need to
see why some code isn't working and was wondering if there is an easy to
view the generated sql. Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
@LunarDraco, Thank You, Thank You, Thank You, Thank You, Thank You,
Thank You!
I suspected that I was not setting the variable correctly and
$activeUser = $this->Auth->user()
in the beforeFilter function of app_controller.php was exactly the fix
I needed. I got the the other version from
Cake doesnt import x amount of rows into your database. I ran into the
same problem months ago, I had to write my own scripts to populate
with test data.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group
Hi Vijay Kumbhar, thanks for you answer, but I have already read it.
I'm actually not THAT beginner. I wanted a higher level solution, like
the migration plugins, not SQL. Does anyone know something like this?
On Wed, Sep 2, 2009 at 1:24 PM, Vijay Kumbhar wrote:
> Hello Ricardo,
>
> Please try ou
Hello ajoberstar,
Please add Document_root before webroot/ in the .htaccess in the
application folder, app folder.
It will help you, coz i was facing same problem on my server.
When i added the DOCUMENT_ROOT path in the .htaccess befor /webroot it
worked fine for me.
please do check this.
On Tue
Hello Agota,
Default limit for the pagination is 20 records per page in cakephp.
So if you want to set it to 25 then please refer the following link,
http://book.cakephp.org/view/165/Controller-Setup
On Wed, Sep 2, 2009 at 2:11 PM, Agota wrote:
>
> Hi there, I am experiencing some issues wi
Hello Ricardo,
Please try out with the basic cakephp assignment,
http://book.cakephp.org/view/219/Blog
2009/9/2 Zé Ricardo
>
> Hi, I'm a cakephp beginner and I'm wondering how I can load initial
> data in my database (eg. some users and groups). I thought fixtures
> could do the task, but it
Hi, I'm a cakephp beginner and I'm wondering how I can load initial
data in my database (eg. some users and groups). I thought fixtures
could do the task, but it seems that they can only be used for tests,
right?
Is there a plugin or even a standard way to do it? I've found some
migration scripts
I have used DebugKit with great success. Here is the article about it:
http://thechaw.com/debug_kit/wiki
You get a toolbar at the top of the window with access to tons of
stuff. It does not do line by line debugging. I would like to use
FirePHP for adding breakpoints and watching variables, but
I have a Posts section which has a bookmark feature for users to save the
posts they like
Now I want to add a preferences section to the users table with a field
"display" which will be a bool true / false so when they view posts it will
either pull all posts or ones they have not bookmarked
Have you set a limit in the $paginate property? If not it defaults
down to 20 I believe.
--~--~-~--~~~---~--~~
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
When images and/or CSS do not show, it's almost always typically an
issue with mod_rewrite not being enabled either on your server, your
account, or your particular directory that holds the CakePHP app.
If you're unable to understand how to get it working, that's what your
shared hosting support
I have had the same requirement, and ACL was "a bit heavy" for me too.
Plus I am too green to understand it.
Check out this tutorial that really helped me:
http://teknoid.wordpress.com/2009/04/22/simplistic-example-of-row-level-access-control-with-auth-security-and-app-model-in-cakephp/
I have
I've got it working by overwriting the scaffold controller in the cake
library with the controller from version 1.2.4. I did a diff on the
two files and I noticed that the main difference is the use of
$_validSession in the newer file. I'm new to CakePHP (this is my first
project), so I don't know
Thanks, Rick. I was trying to determine if there was an easier way to
add it, but after talking with some of the developers in their IRC
chat, I couldn't think of any as the call to the autoload is
required. I was trying to think of a way to package it all up, such
as in a plugin or something si
Thanks for your reply! I am missing the replies to the blog post
though. I've experienced a long time lag between posts being approved
on the extjs.com/forum lately. I will check again periodicaly.
I have changed the datastore over to the GroupingStore, but I am not
coding the field name correctl
I use the following code:
$this->User->saveField('lastlogin', date('Y-m-d H:i:s'));
"lastlogin" is a field in my users table, so adjust your name/table
accordingly.
Also, if your server is not in the same timezone as you are, but you'd
like it to be, you'll probably want to add the following sni
You want the total number of records?
echo $paginator->params['paging']['Conference']['count'];
On Wed, Sep 2, 2009 at 1:51 AM, SuMiT KuMaR wrote:
>
> Cakephp provides the function to get the count of a query with:
> $this->Model->find("count")
>
> Also I have noticed that cakephp fires the coun
$activeUser = $this->User->find(array($this->Auth->user('id')));
Not sure I understand why you set the active user with this line:
as $this->Auth->user() should contain everything you need from the
user model.
After a user is logged in you never tell the auth component that the
user has logged ou
Thanks for the help. Yes, there's one bundle, it was a typo. And I
removed it and reinstalled it within /Library/Application Support/
TextMate/Bundles like this:
svn co http://svn.textmate.org/trunk/Review/Bundles/PHP%20Cake.tmbundle/
I then fired up TextMate, but alas, still no luck. I went int
Friend,
I have been where you are. Here is a tutorial that helped me greatly:
http://forum.phpsitesolutions.com/php-frameworks/cakephp/ajax-cakephp-dynamically-populate-html-select-dropdown-box-t29.html
Of course I was not satisfied with just that, so check out this thread
and the final answer
Am I wrong or is id dropped inside init funtion in /cake/libs/
class_registry.php ?!
I'm trying to load a model on the fly. I can pass a id to the function
like:
ClassRegistry::init( array('class' => 'User', 'id' => $id), 'Model' );
But inside the function init the id is never handled. Since th
If you're using Postgres or MySQL, at least, the format should be:
-MM-DD HH:MM:SS
So, you can use PHP's date function:
$this->data['Visit']['date'] = date('Y-m-d H:i:s');
I'm not so sure that 'date' is a good name for a DB column, though.
http://www.php.net/manual/en/function.date.php
O
ACL might be a bit heavy for this. You can achieve this by using admin
routing and AuthComponent. In your non-admin actions, just ensure that
your conditions check for the user_id so that only books belonging to
that user can be edited, deleted, etc. For example:
'conditions' => array('Book.user_
Hello,
I am trying to check out different php frameworks. As a first test I
want to create a login box that should appear on every page of the
website (that has the standard layout). If a user is not logged in,
the login form should appear. If he is logged in, an appropriate
message and a logout
What's the difference between Subject & OfferedSubject? If it's just
that the latter are a subset of all available subjects but are the
only ones currently offered, you might as well add a column to
subjects table as a flag. Say, "enabled" or "current" or something
similar.
And offered_subjects_e
@Martin, thanks. debug($activeUser); returns the type of output I was
expecting.
@abc, I'll look into the php version also.
Now on to my problem, once I actually stopped to _read_ the debug
output I realized that the $activeUser variable is NOT CHANGING when I
log out and log back in again. In a
It must be somehow connected with "fields" parameter - when I dont use
it, cake does multiple join. But when I add 'fields'=>array
('Campaign.campaignname','SUM( StatsHourly.impressions ) AS
impressions',(...)) into the find method call cake does only first
level joins and I get sql error "Unknown
Yea I am also on bluehost and i cant even find the conf file or any
solutions to get this newest version of cake php to load the css or
images either.
I am thinking about using the dev version because I wanna get started
on my cake php i downloaded a cheat sheet and everything but i cant
get the
I'm having the same issue. I hope to solve it today; if I do, I'll
post here.
On Aug 31, 5:09 am, Andras Kende wrote:
> Hello,
>
> is it possible that in cake 1.3 using var $scaffoldwont redirect on
> save or edit ?
> I just get a blank page.
>
> class ProductsController extends AppController
Hi,
In my adserver's database I have ad impressions stas in table named
data_summary_ad_hourly. Model for this table is named StatsHourly and
it "belongsTo" Banner and Zone model. Banner model belongsTo Campaign
model and Zone model belongs to Publisher model. It's all quite
logical. Now I would
Bundles? Unless that's a typo, you might need to stick with one bundle
for CakePHP or you might get some conflict.
I have this one
http://svn.textmate.org/trunk/Review/Bundles/PHP%20Cake.tmbundle
installed in ~/Library/Application Support/TextMate/Bundles/
It works as it should for me. "dat" wil
Hi there, I am experiencing some issues with pagination in a plugin
mine. It show incorrect pagination counts on all my models in the
plugin. It also shows only 20 results although I have 25 items listed
in one of the table. The search results also just shows 20 results.
All the index pages shows
yes you can used multiple join query
On Wed, Sep 2, 2009 at 11:24 AM, SuMiT KuMaR wrote:
>
> I need to get the counts from three different tables. Is it possible
> to get the counts in a single query?
>
> >
>
--~--~-~--~~~---~--~~
You received this message becaus
Yes. That is usually it when is is an update of a stable branch.
The vendors folder is basically an empty placefolder and anything
useful in there will have been puy there by you.
The app folder very rarely change during these updates. If some file
in there does change I expect there will be a wa
So I generally only replace the cake folder with the one from the new
release? And what about the app and vendor folders?
On 31 Aug., 15:29, Martin Westin wrote:
> Generally you can just replace your cake folder with the new one or do
> a pull if you use Git.
>
> Unless you were having problems
Hi there,
i stuck in a problem which is perhaps obvious, but i didn't see the
solution right now.
It is a simple savell for a hasnone association. I try to edit the
primary and secondary data in one form. But the secondary data creates
always a new insert instead of updating it.
I think the nami
There is none who can help me ? ? ?
--~--~-~--~~~---~--~~
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-p
Quoting myself:
"I already mentioned trying both SINGLE quotes and DOUBLE quotes. Both
result in escaped quotes, hence this post. "
I could have been more clear on where exactly I tried both double and
single quotes :)
On Sep 2, 9:44 am, Kana wrote:
> Hi there, thanks for your quick reply.
>
>
Hi there, thanks for your quick reply.
I already mentioned trying both SINGLE quotes and DOUBLE quotes. Both
result in escaped quotes, hence this post.
The example you gave results in:
Is there something I am overlooking here? Is it just not possible to
have Javascript in $html->link() ?
:)
Is this that different to your other post about counts that it needs
to be in a different thread?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegr
Need more info really ...
Is this a pagination or a count query?
Is it a count of related records (i.e. counterCache) or a count of a
returned result set?
In what situation would you be looking for the count of a record
alone?
Probably better of explaining in detail what it is you're trying to
a
I need to get the counts from three different tables. Is it possible
to get the counts in a single query?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php
Hi All, I've scoured the web and had no luck, I've installed the
bundles for cakephp, I've set the file type for my php file to HTML
(PHP Cake), yet none of the snippets work for me. For instance, I try
typing dat then hitting tab and nothing happens. Is there something
else I'm missing perhaps? I
Cakephp provides the function to get the count of a query with:
$this->Model->find("count")
Also I have noticed that cakephp fires the count query to each query
that i execute.
Questions:
1. Is it because of the Pagination component/helper?
2. How to get the result of the Count query?
Here are
Hi,
I realize this question may be fairly easy to answer, but I just
haven't managed to get a clear understanding of how to do it through
the documentation or google search.
I settled by using the database convention of naming my date field to
'created' as a datetime field in the database and in
Im building a school enrollment system then i came across with this
problem with associations.first of all, i need to link 3 tables:
1. subjects
-id
-name
-lecture_units
-lab_units
2. offered_subjects
-id
-subject_id
-section
-schedule
3. offered_subjects_enrollees
-id
-offered_subject_id
-enro
Any reason you are not just using debug?
debug($activeUser);
I have never used the Debugger class myself. I am generally content to
just debug to screen when something strange happens.
/Martin
On Sep 2, 2:36 am, abc wrote:
> Use the var_dump of php,
> ob_start();
> var_dump($active
75 matches
Mail list logo