Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [inny]Kohana
Forum PHP.pl > Forum > PHP > Frameworki
sdawid
WItam.

Mam problem z wyświetlaniem strony w Kohana po przeniesieniu jej z innego serwera.

Czy mógłbym prosić o wytłumaczenie mi o co chodzi bo przyznam się szczerze, że nie ograniam tematu. ;(

Bedę wdzięczny za pomoc.

Pozdrawiam!



Po wpisaniu adresu url wyswietla mi następujące błędy:

  1. SYSPATH\classes\kohana\view.php [ 252 ]
  2.  
  3. 247 */
  4. 248 public function set_filename($file)
  5. 249 {
  6. 250 if (($path = Kohana::find_file('views', $file)) === FALSE)
  7. 251 {
  8. 252 throw new Kohana_View_Exception('The requested view :file could not be found', array(
  9. 253 ':file' => $file,
  10. 254 ));
  11. 255 }
  12. 256
  13. 257 // Store the file path locally


  1.  
  2.  
  3. SYSPATH\classes\kohana\view.php [ 137 ] ť Kohana_View->set_filename(arguments)
  4.  
  5. 132 */
  6. 133 public function __construct($file = NULL, array $data = NULL)
  7. 134 {
  8. 135 if ($file !== NULL)
  9. 136 {
  10. 137 $this->set_filename($file);
  11. 138 }
  12. 139
  13. 140 if ($data !== NULL)
  14. 141 {
  15. 142 // Add the values to the current data
  16.  
  17.  


  1. SYSPATH\classes\kohana\view.php [ 30 ] ť Kohana_View->__construct(arguments)
  2.  
  3. 25 * @param array array of values
  4. 26 * @return View
  5. 27 */
  6. 28 public static function factory($file = NULL, array $data = NULL)
  7. 29 {
  8. 30 return new View($file, $data);
  9. 31 }
  10. 32
  11. 33 /**
  12. 34 * Captures the output that is generated when a view is included.
  13. 35 * The view data will be extracted to make local variables. This method
  14.  
  15.  


  1. APPPATH\bootstrap.php [ 120 ] ť Kohana_View::factory(arguments)
  2.  
  3. 115 $request->status = 404;
  4. 116 echo View::factory('layout')
  5. 117 ->set('title', 'HATO - 404')
  6. 118 ->set('sidebar', View::factory('sidebar'))
  7. 119 ->set('content', View::factory('page/404'))
  8. 120 ->set('forum', View::factory('forum'))
  9. 121 ->render();
  10. 122 }
  11. 123
  12. 124 if ($request->send_headers())
  13. 125 {
  14.  


  1. DOCROOT\index.php [ 109 ] ť require(arguments)
  2.  
  3. 104 // Load empty core extension
  4. 105 require SYSPATH.'classes/kohana'.EXT;
  5. 106 }
  6. 107
  7. 108 // Bootstrap the application
  8. 109 require APPPATH.'bootstrap'.EXT;
  9.  
  10.  
Damonsson
A błędy? To wskazuje tylko miejsce tych błędów.

Wygląda, że nie może znaleźć pliku. System operacyjny się zmienił (linux rozróżnia wielkość liter)? Sprawdziłeś czy był ustawiony jakiś base_url i zmieniłeś, tak samo w htaccess?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.