Hi gents,
I've inherited a site doing something SEO suicidal, but I can't for the
life of me find where it is doing this, and I'm not even that familiar with
PHP, so it's turning out to be a nightmare. It probably doesn't help that
the site is 4 years old or so and has barely been updated in th
Hi,
I see from the 2.4.0-rc1 release notes that these two items are deprecated
and will be removed in 3.x
Two questions come to mind:
1) Why?
2) What are the recommended replacements?
Thanks
Jason
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com
In my CakePHP website I have added my css file to
app/View/Layouts/default.ctp
$this->Html->css('myapp');
I use this to add colors to rows in tables on my website.
I have a controller which sends a weekly email to staff with the contents
of a table on my website.
My problem is the table in t
There is a problem, if set table prefix in database config, it will also
add the prefix to subquery.
在 2012年8月29日星期三UTC+8上午1时27分47秒,Mark Wratten写道:
>
> Glad to. After some reading I was able to take it a step further and turn
> it into a custom find method, which nicely encapsulates the code
That could be it... I am reading this post to figure what's happening, and
I'm reading on that link where it says that IIS 7 natively doesn't support
.htaccess files. I am running on IIS 7, perhaps you are too?
On Wednesday, March 7, 2012 7:53:35 AM UTC+2, amg55nj wrote:
>
> Ok so I used this gu
te HTML
into the view, my problem is the opposite, nothing appears to change!
EDIT: Just checked firebug and it looks like there is a duplicate set
of view data returning to the browser, but it's still not being drawn
on the browser (either firefox or IE)
Hopefully someone out there can help.
I have in a controller an array containing data used on the view to populate
a drop down. I put it on the controller, so the array could be used by
multiple views associated with that controller (create, edit). Additionally,
it means that if I do ever have to change it, I just have to change it
t spelling.
Jason Wydro
(503) 482-9321
ja...@jasonwydro.com
www.jasonwydro.com
On Tue, Jan 25, 2011 at 12:44 PM, Larry E. Masters wrote:
> You should upload your video to http://tv.cakephp.org you know there is a
> contest for the initial launch?
>
> http://tv.cakephp.org/launch-compet
It could be you are missing the cake log file in
/cake/libs/cake_log.php. Check to see that the file is
there. It has happened to me before because the way
I had my .gitignore set up, it ignored the cake_log.php
file when I pulled from git. That might be the problem.
On Nov 24, 9:02 am, Jules wro
Yes, thanks so much. I still feel like there could be more complicated
things that I wouldn't know how to do, but I'll cross that bridge when I get
to it ;)
On Mon, Mar 22, 2010 at 1:21 AM, WebbedIT wrote:
> Glad I set you on the right path, Set::combine is a handy and powerful
> tool when pl
Hi all--
I was playing with Cake last summer on my old Powerbook. I haven't
touched it in awhile, and decided to start again on my new Macbook Pro
running 10.6 (built-in PHP 5.3). I have so far been unsuccessful
either with older versions of cake or the new 1.3 beta.
Initially I was able to get
when using ajax i always set the debug to 0 before rendering the view.
You can do that
in the controller by doing Configure::write('debug', 0). That will
only set the debug temporarily
so it should solve your problem.
On Nov 12, 6:38 am, Alberto Dominguez
wrote:
> Hi,
>
> I'm using CakePHP to gen
many encodings, I wonder why textmate,
which is not
free, cannot.
On Sep 10, 11:45 pm, Martin Westin wrote:
> On Sep 10, 1:05 pm, jason m wrote:
>
> > The only downside of textmate is that it doesn't really
> > support any
> > other encodings besides UTF8.
>
> > J
real
power
of textmte is all of the different bundles which makes coding faster
and more
enjoyable. The only downside of textmate is that it doesn't really
support any
other encodings besides UTF8.
Jason
On Sep 10, 12:18 am, Bob Albert wrote:
> I've been doing my PHP coding in BBed
I have a cakephp 1.2 app (1.2.2.8120) and I am trying to change the
mime-type for Japanese cell phones on certain pages with this one line
of code in the app/webroot/.htaccess file:
AddType application/xhtml+xml .xhtml
This works for .xhtml files uploaded directly to the webroot folder,
but regul
ds through the browser interface. The issue only
surfaces when I'm running my shell script. In fact - one of my models
is being used by the shell script and a few standard controllers and
it is only throwing an error when run through the shell script.
- Jason
On May 18, 3:15 pm, Jason wr
n /home/jasford/
feedmagnet.com/app/vendors/shells/import.php on line 72
but if I remove the word "private" from the front of the line it does
not return a syntax error.
Does anyone have any idea what could be going on here? I'm running PHP
5.2.9 locally (Entropy release 7) and PHP 5.2.6
'Feed' => array('dependent' => true, 'exclusive' => true)
),
true
));
$this->Account->delete($id);
- Jason
On May 11, 3:52 pm, Jason wrote:
> Wow - so I feel dumb about that mistake! I updated my code and it is
> working now. I was goi
ate and Feed models are not deleting.
Is there some trick for getting on-the-fly bindings to work with
recursive deletion?
Thanks!
- Jason
On May 11, 3:00 am, schneimi wrote:
> Hi,
>
> just a misspelling, try 'dependent' instead of 'dependant' ;-)
>
> Michael
>
>
I am running this in the controller:
$this->Account->del($id);
Cake generates SQL to delete from the accounts table, but it does not
even attempt to touch the other tables that are dependent. I even
tried forcing the $cascade variable (which default to true) like this:
$this->Account->d
d
* product_id
* size
Thanks in advance for any help. I tried to find this answer but I
wasn't coming up with the right terms to search for I guess.
Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"C
M, brian wrote:
> >
> > Which is the diffrerence between .thtml and .ctp in views?
> >
> > Thanks,
> >
> > Fernando
> >
> > >
> >
>
> >
>
--
All the best,
Jason Wydro
w3developing, LLC
--~--~-~--~~~--
Hi all,
I want to call a check function before the bootstrapping starts. I
believe I need to change in the core of cakePHP, but don't know where
to begin. Anyone who familiar with the core could help me?
Thanks,
Jason
--~--~-~--~~~---~--~~
You received
for every single version. I believe I need to change something in the
core of CakePHP but don't know where to begin. Anyone who familiar
with the core could help me?
Thanks,
Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribe
assuming your relations are setup correctly in the models, you
probably
just need to use the recursive in the movies controller.
$movies = $this->Movie->find('all', array('recursive'=>2));
that should give you a list of celebs data for each cast. then just
use a
pr($movies) to see what is in the
I think you should look into one of the methods using the Set class
when
combining results from a count query like this. I'm not sure exactly
which
set method you should use but maybe Set::combine.
http://book.cakephp.org/view/662/combine
I think there is nothing wrong with using a foreach to co
+1 for wildflower. I'm not sure if it's done yet but I think the
wildflower developer wanted to make it into a plugin so you could just
pop it into your plugin folder and use it right away, while the rest
of your app is separate.
On Jan 24, 6:15 pm, "ache...@gmail.com" wrote:
> You might look in
I'm wondering the same. I have been using rails for about a year, and enjoy
it. But there is not much of a desire for it in my area, and i'm looking at
moving to PHP.
jason
On Sun, Jan 18, 2009 at 1:43 PM, vlain wrote:
>
> I worked with Rails for one year and I found it a go
Also, the first line of the find method description says that it
returns a single row as a resultset array. That might have been true
for cake 1.1 but for 1.2 I generally use the find method for basically
any kind of read from the model, and this method if probably the one I
use most and therefore
One of the most confusing areas of the API when pre-release versions
of cake 1.2 came out was probably the Model::find method. I think the
cookbook covers it very well, but just by looking at the api, you
wouldn't really know how to use it. A simple link to the cookbook in
the commend will probabl
usually you would include the css in the head tag. also the things i
would try are:
1) set the debug level to 2 in config/core.php if it's not already.
2) there might be an error somewhere else in your code
--~--~-~--~~~---~--~~
You received this message because you
i think all of the new find methods like 'count', 'all', 'first', etc
take a second parameter which is an array with all the options.
See api.cakephp.org.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" grou
i think it should be
return $this->find('count', array('conditions'=>$conditions));
On Dec 30, 2:59 pm, gearvOsh wrote:
> All I did was this:
>
> return $this->find('count', $conditions);
> return $this->findCount($conditions);
>
> $conditions = array('OR' => array(
> 'Friend.user_id' =
I have the following tables,
events
+-id
+-offering_id
...
offerings
+-id
+-program_id
+-start_date
...
programs
+-id
+-name
...
One program could have many offerings, but each offering is tied to
one program. I have the $belongsTo and $hasMany set up via Bake. I
would like to regularly be a
I have had a lot of luck with fckeditor in my cake projects. There is
also a tutorial for it in the bakery.
On Nov 14, 5:30 pm, "Aneesh S" <[EMAIL PROTECTED]> wrote:
> thanks, but i need more options yahoo would be my choice...
> Aneesh S
--~--~-~--~~~---~--~~
Sorry to beat what is certainly a very uncomfortable horse...
The db is as follows
Users HABTM Groups HABTM Reports (using Group_Users and Group_Reports
tables to manage relationships)
I want to have conditions on both users and reports while returning a
particular report only once. Basically I
kephp and query, but all I end up with is how
to paginate a custom query. I just want to know how to do a query at
all.
-Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post t
e.com/group/cake-php/topics
>
> What concrete advantage is there in using a forum.
>
> AD
I agree. Just take a look here:
http://groups.google.com/group/cake-php/topics
It's just like a forum without the animated avatars.
-Jason
--~--~-~--~~~---~-
I attended the cakephp conference in tokyo last saturday. Many
different people presented various things about cakephp such as
cakephp testing, and general information about cakephp. Also Garrett
Woodsworth presented about the state of cakephp and about the cakephp
roadmap. One interesting point I
I'm having problems setting up a mocked controller for testing.
I generated the partial mock with the following:
Mock::generatePartial('AccountsController',
'MockAccountsController',
array('redirect'));
Then in the startTest method of the CakeTestCase
Thanks, got it working.. got a new error now that im posting in a
seperate post.
On Jun 5, 1:02 pm, leo <[EMAIL PROTECTED]> wrote:
> Delete the two occurrences of the word DEFAULT and try again.
>
> On 5 Juny, 18:26, Jason Ourscene <[EMAIL PROTECTED]> wrote:
>
> &g
Fatal error: Class 'PostsController' not found in /Users/jasoncalleiro/
Sites/cakeblog/cake/dispatcher.php on line 157
Thats what im getting after i create the index.thml file for my post.
Any idea.
Here is the code in my controller.
set('posts', $this->Post->findAll());
}
}
--~--~--
Following along the tutorial and when i get past the part where you
build your first view and hit the url localhost/posts/index
I get this error.
Fatal error: Class 'PostsController' not found in /Users/jasoncalleiro/
Sites/cakeblog/cake/dispatcher.php on line 157
Any clue?
--~--~-~--
This is my second time posting, so if it shows up again i apologize, I
refreshed during the last post.
So the command im sending is.
# CREATE TABLE posts (
# id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
# title VARCHAR(50),
# body TEXT,
# created DATETIME DEFAULT NOT NULL,
# modified DATETIME DEFA
DEFAULT NOT NULL
);
And here is the error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'NOT NULL,
modified DATETIME DEFAULT NOT NULL)' at line 5
I cant figure this one out. Than
There are many different server configurations and I too have had
problems installing cakephp. I guess the first step would be to see if
php is working. You could do that by placing a php file there with the
code . That should print out a bunch of your php
settings.
If you httpdocs is your webroo
Old time programmer (since 1979) and fan of PHP (since '97) who decided to
venture out and see what all the fussing over the OS frameworks was all
about. I was enticed by a PHP Magazine article on CakePHP and after reading
a lot of the pros and cons of different frameworks this seemed like the bes
I've had success with media temple dedicated virtual servers. They are
about $50/month (a little less if you pay a year in advance) and I
setup cake many times with no problems so far. Speed is pretty good
and also the support was always quick and helpful. It was also easy to
manage clients and se
Check out the $param array in your Controller when the submit occurs:
Array
(
...
[form] => Array
(
[b] => Submit
)
...
)
BTW, I changed the 'name' for your submit button to 'b', so it is
different to the edit button. Obviously if the edit button was cli
if anyone else does have a
good (and simple - if it ain't simple then people won't do it) way of
doing it then I'd be very interested. But for now I rather write code
than struggle to actually test it in a repeatable way!
Jason.
On Mar 6, 1:16 am, Micro <[EMAIL PROTECTED]>
Isn't there an article on that here:
http://bakery.cakephp.org/articles/view/how-to-use-smarty-with-cake-smartyview
or is that not what you're asking?
On Mar 8, 11:55 am, herc <[EMAIL PROTECTED]> wrote:
> How to create 'cake' reusable elements in Smarty Template engine?
--~--~-~--~
More noob questions.
Where do I put my CSS in relation to the app folder?
Where do I put my images in relation to the app folder?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this gro
I am getting no where with the documentation.
function view($name = null) {
$this->PageControl->name = $name;
$this->set('post', $this->PageControl->read());
}
This outputs the following...
WHERE `PageControl`.`id` = 'index' LIMIT 1
I want it to output
WHERE `PageControl`.`tit
I will be
enlightened.
Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
I have tried the following and it works. However I am getting a
warning..
Controller.
function edit($id = null) {
if (empty($this->data)) {
$this->Content->id = $id;
$this->data = $this->Content->read();
} else {
if ($this->Content-
I have a method that runs a bunch of define statements for
localizations stored in a database.
function loadAll($language = 'english',$group=null){
$localizations = $this->Localization->findAll("",array('name',
$language));
foreach($localizations as $locali
How about if you want a list with two fields like Post.id =>
Post.title?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe
I've had pretty good luck doing it this way. Below are the important
snippets of code. I've left off the actual checking code since that is very
specific to my application. You can see it in action here:
http://www.area50four.com/signup
>From the Signup page:
input("User/username", array('on
started looking for solutions. The only
one I found that wasn't hugely complicated or flaky at best was the new date
functions in PHP 5.1. The next day, I upgraded our web servers to PHP5.
I think we're one or two other features that are new in PHP5 but I can't
recall what they are off
I hate to do this, but I gotta give this a bump. No one has any
suggestions? :(
On Sep 21, 6:25 am, Jason <[EMAIL PROTECTED]> wrote:
> I have an interesting issue with mymodelrelationships that I'm
> attempting to figure out how to take care of in the most elegant
> fashi
I have an interesting issue with my model relationships that I'm
attempting to figure out how to take care of in the most elegant
fashion.
Basically, I have a User model, a Profile model, and then multiple
extended Profile models (ex: AdminProfile, etc.) which have
information specific to that ty
On Sep 6, 4:02 am, AD7six <[EMAIL PROTECTED]> wrote:
> Hi Jason,
>
> Sorry, somethings (How do I keep coders from using these models to
> edit the tables?) lead me to believe you were asking a (internal?)
> security question. And sorry if that tainted the tone of my reply.
On Sep 5, 5:17 pm, AD7six <[EMAIL PROTECTED]> wrote:
> On Sep 4, 5:32 pm, Jason <[EMAIL PROTECTED]> wrote:
>
>
>
>
> > I would like to be able to access this data through one object that is
> > locked down. There will be no reason for my application to e
r these calculations, as well, since they are rather intensive. I
just want to setup the object model properly before I worry about
that, however.
If I can make this a component that is portable, I would be more than
happy to throw it up on the bakery.
> Ketanhttp://www.eclassifieds4u.com
>
&g
Even if I don't create the CRUD functionality, it's still there for
another developer to totally mess things up. To add some level of
protection I've created an AppReadOnlyModel that extends AppModel
which has overridden save and delete functionality. It was easier than
editing the beforeSave and
rom within any controller and it needs to use the
DB connection that Cake sets up.
What is the best way to accomplish this while staying within the
constraints and guidelines of the Cake system?
Any suggestions are GREATLY appreciated!
Thanks,
Jason
--~--~-~--~~~
p would be greatly appreciated.
Thanks in advance,
Jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe f
On 7月27日, 上午9时06分, rtanz <[EMAIL PROTECTED]> wrote:
> ok finally got most of it to work, the only problem i still have is
> the task management bit.
>
> currently i have
>
> Roles
> var $hasMany = array('Task');
> var $belongsTo = array('Module','User');
>
> Tasks
> var $be
I am running into some issues regarding mod_rewrite, mod_vhost_alias
and cake. I am using the latest stable CakePHP and ran through the
Blog tutorial. Basically, when I setup an explicit VirtualHost, it
works. When I try to have mod_vhost_alias manage the vhost, it does
not work. Here is the expli
I do programming for a living and there's another programmer in my shop
who uses PSPad almost exclusively. He really likes it. I have to say I
like the simplicity of it. I'm mainly interested in an editor that
provides syntax highlighting and the gets out of my way. PSPad does fit
the bill in tha
Emacs is evil. And it's nowhere close to lightweight or clean. Let the
flaming begin! :-)
Leonardo Varuzza wrote:
> Emacs, the one true editor ;-)
>
> On Feb 13, 2:08 pm, Jason Huebel <[EMAIL PROTECTED]> wrote:
>> For those poor souls who can't use TextMate be
can be found on the second page of
the thread.
Jason Huebel wrote:
> For those poor souls who can't use TextMate because you're on Windows,
> you might want to take a look at InType (http://intype.info/). It's
> still in alpha (and will eventually be commercial software), but
ode
snippets and keyboard shortcuts for a particular language.
It's a very lightweight and extremely clean (almost to a fault)
interface. Hope you like it.
Jason Huebel
[EMAIL PROTECTED] wrote:
> G'day all,
>
> Matt from Australia here. In the past I've done all my PHP
All I can say is, WOW. I've been using TextMate on my Mac Mini and
Ultraedit on my Windows box. I think I just found the replacement for
Ultraedit. Great find!
Jason
Mandy wrote:
> Well, this post is not about asking a question, but about sharing an
> editor that I recently found.
[L]
path_to_app/app/webroot/.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
Jason Huebel
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
lected using ajax.
Is this possible with cake?
Another question I have is it possible to use cake models from a
command line php script and if so how would I include all the needed
cake libs and instantiate a model?
Thanks very much for the help,
it solved, so I can move on. :)
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To p
in overriding render(). Once I changed the
method to that, things started working again. At that point, I
realized that in my render() method, when I called the method on the
parent class, I failed to pass along the three parameters.
So. User error. Thanks to all that helped. :)
--
jason lee
pretty funny:
http://spamusement.com/
A word of warning, though. Given the nature of some spam, some the
comics are more than just a bit off color...
--
jason lee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PH
essage and the link.
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this g
1 DESC `users`8 8 1910
I tried rolling back to 1.1.6 and got the same result.
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
You received this message beca
On 8/24/06, Samuel DeVore <[EMAIL PROTECTED]> wrote:
>
> Can you post the code in your controller?
Here's the relevant snippet:
http://cakephp.org/pastes/show/2ec3cd97a310e0ff524105a02a3339f2
--
jason lee
http://www.steeplesoft.com
http://blogs.ste
Using CakePHP 1.1.7, when I say $this->flash("foo", "/foo"); it
doesn't flash. It rerenders the page i'm on. Has anyone else had that
problem?
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
h
#x27;);
Instead, it's rerendering /users/add. Does that make sense?
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
at I'm trying to
do, so I gave it whirl. The bottom line is, though, for whatever
reason, that's not working. I get the message:
The requested address index.html was not found on this server.
when I hit http://foo.com/index.html. Any pointers?
Thanks!
--
jason lee
http://www.steeplesoft.c
!^/stats*
But only under Apache 2. Apache 1.3 doesn't like that, so I'll just
have to wait for all my hosts to be updated...
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
Yo
r the exisiting file exception if the request URI ends in
.html. Are there any mod_rewrite gurus that can give me some
pointers? I'd also like to exlude /stats* and am having mixed results
on that.
Thanks a lot!
--
jason lee
http://www.steeplesoft.com
http://blogs.
-ym.org
I'll grant that it's no eBay, but performance has been good enough for
me. For what that's worth... ;)
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
--~--~-~--~~~---~--~~
You received this message because you are sub
'order' => '',
'foreignKey' => '', 'dependent' => true, 'exclusive' => '',
ts/default.thtml?rev=112&root=rdos&view=markup
usage:
https://cakeforge.org/plugins/scmsvn/viewcvs.php/trunk/CakeMap/views/maps/index.thtml?rev=112&root=rdos&view=markup
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~-
l
AJAX toolkits, such as dojo, that several have used with great success
with CakePHP, though.
--
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~-~--~~~---~--~~
You received this message because you are su
see the error that CakePHP is trying to give you. It just can't
> because there is code in there that relies on CakePHP and it has
> already bombed out.
Ah! That was it! If you're ever in Oklahoma City, I'll buy you a Slurpee :P
--
jason lee
http://www.steeplesof
9
Fatal error: Call to a member function browser_is_ie() on a non-object
in /tmp/sscp2/views/layouts/default.thtml on line 9
though the page title says "Missing Database Table" which has to be a bug.
Does anyone see why that would be failing? I'm REALLY stumped. It
works fine on 0.10.
ust making sure... :)
> In my core.php file I have uncommented the line 42,
> define ('BASE_URL', env('SCRIPT_NAME'));
I think that needs to be commented out.
--
jason
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com
--~--~
ncapsulates some of the generic functionality I'll need in my cron
jobs. I then create a script that includes this file, instantiates
the CLI class, and does whatever it needs to do. It may be a bit of a
hack, but not too bad, I think, and it keeps cron jobs out of the
reach
95 matches
Mail list logo