Jump to content
php.lv forumi

problēmas ar CakePHP uzstādīšanu


Recommended Posts

1. downloudoju jaunāko Wamp versiju

2. uzinstalēju Wamp

3. downloudoju CakePHP 1.2.4.8284 Stable versiju

4. atraroju failu cake_1.2.4.8284

5. mapi pārsaucu par cake_1_2 un pārkopēju uz C:\wamp\www

6. direktorijā C:\wamp\www\cake_1_2\app\config failu database.php.default nokopēju un pārdēvēju par database.php

7. failā database.php uzstādu datubāzes nosaukumu, ūseri un paroli

8. browserī rakstu localhost/cake_1_2/, bet man izsviež errorus

 

P.S OS: Windows 7

 

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\inflector.php on line 131

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\configure.php on line 136

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\configure.php on line 226

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\configure.php on line 906

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\configure.php on line 946

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\cache.php on line 71

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\cache.php on line 151

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\debugger.php on line 99

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\debugger.php on line 108

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\file.php on line 96

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\cache\file.php on line 89

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\dispatcher.php on line 453

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\dispatcher.php on line 677

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\router.php on line 173

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\controller\controller.php on line 338

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\controller\controller.php on line 779

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\controller\component.php on line 237

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\controller\component.php on line 239

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\view\view.php on line 748

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\class_registry.php on line 68

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\class_registry.php on line 140

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\class_registry.php on line 148

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\security.php on line 53

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\string.php on line 45
CakePHP: the rapid development php framework

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\i18n.php on line 109

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\i18n.php on line 110

Deprecated: Function split() is deprecated in C:\wamp\www\cake_1_2\cake\libs\l10n.php on line 396
Release Notes for CakePHP 1.2.4.8284.
Read the changelog

Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application [CORE\cake\libs\debugger.php, line 557]

Code

   function checkSessionKey() {
       if (Configure::read('Security.salt') == 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi') {
           trigger_error(__('Please change the value of \'Security.salt\' in app/config/core.php to a salt value specific to your application', true), E_USER_NOTICE);

Debugger::checkSessionKey() - CORE\cake\libs\debugger.php, line 557
include - CORE\cake\libs\view\pages\home.ctp, line 32
View::_render() - CORE\cake\libs\view\view.php, line 666
View::render() - CORE\cake\libs\view\view.php, line 376
Controller::render() - CORE\cake\libs\controller\controller.php, line 803
PagesController::display() - CORE\cake\libs\controller\pages_controller.php, line 82
Object::dispatchMethod() - CORE\cake\libs\object.php, line 118
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
require - APP\webroot\index.php, line 88
[main] - CORE\index.php, line 61

Your tmp directory is writable.

The FileEngine is being used for caching. To change the config edit APP/config/core.php

Your database configuration file is present.

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\model\connection_manager.php on line 66

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\model\connection_manager.php on line 80

Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\cake_1_2\cake\libs\model\connection_manager.php on line 106

Cake is able to connect to the database.
Editing this Page

To change the content of this page, create: APP/views/pages/home.ctp.
To change its layout, create: APP/views/layouts/default.ctp.
You can also add some CSS styles for your pages at: APP/webroot/css.
Getting Started

new CakePHP 1.2 Docs

The 15 min Blog Tutorial
More about Cake

CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Active Record, Association Data Mapping, Front Controller and MVC.

Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.

   * Cake Software Foundation
         o Promoting development related to CakePHP
   * CakePHP
         o The Rapid Development Framework
   * CakePHP Documentation
         o Your Rapid Development Cookbook
   * CakePHP API
         o Quick Reference
   * The Bakery
         o Everything CakePHP
   * The Show
         o The Show is a live and archived internet radio broadcast CakePHP-related topics and answer questions live via IRC, Skype, and telephone.
   * CakePHP Google Group
         o Community mailing list
   * irc.freenode.net #cakephp
         o Live chat about CakePHP
   * CakePHP Trac
         o For the Development of CakePHP (Tickets, SVN browser, Roadmap, Changelogs)
   * CakeForge
         o Open Development for CakePHP
   * Book Store
         o Recommended Software Books
   * CakePHP gear
         o Get your own CakePHP gear - Doughnate to Cake

CakePHP: the rapid development php framework
(default) 0 query took ms Nr	Query	Error	Affected	Num. rows	Took (ms)

Link to post
Share on other sites

Vai arī atslēdz Deprecated warningu rādīšanu:

error_reporting(E_ALL & ~E_DEPRECATED);

 

Pameklē arī CakePHP mājaslapā kādu noderīgu informāciju. Varbūt kkādā dev versijā (1.3?) ir pieminētas attiecīgās problēmas salabošana.

Link to post
Share on other sites

diez vai būtu prātīgi atslēgt un ignorēt tos warnus, lai gan īsti nesaprotu ko tas "Deprecated" nozīmē ... 1.3 dev versijā šitais ir izlabots

CakePHP 1.3 dev includes many new enhancements and some optimizations. The most notable changes include

- compatibility changes have been added for PHP 5.3.

- new Javascript Helper including support for multiple js libraries

- improved bake code generation with better support for plugins and templates

Link to post
Share on other sites

Deprecated nozīmē novecojis.

Parasti tāds warnings metās uz fīčām, kuras valodas developeri uzskatījuši par nevajadzīgām, un taisās to izmest no valodas ārā. Parasti to dara nākamajā/aiznākamajā (vai kādā citā turpmākā) versijā. Bet patreizējā versijā uz tādām fīčām metās warnings, lai tu zinātu, ka turpmāk tādas iespējas nebūs, un laicīgi savu softu izlabotu, lai tas korekti strādātu arī ar turpmākajām versijām.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...