public static function ListEducationAsKey($ideducation = null){ $query = self::find()->select('name')->indexBy('id'); if($ideducation != null) $query->Where(['id'=>$ideducation]); return $query->column(); } public static function educationName($ideducation){ $query = self::find()->select(['id', 'name'])->where(['id'=>$ideducation])->one(); return $query->name; } public static function EducationId($name){ $query = self::find()->select(['id'])->where(['name'=>$name])->one(); if(!empty($query)){ return $query->id; }else{ return false; }
$query->Where(['id'=>$ideducation]); return $query->column(); } public static function educationName($ideducation){ $query = self::find()->select(['id', 'name'])->where(['id'=>$ideducation])->one(); return $query->name; } public static function EducationId($name){ $query = self::find()->select(['id'])->where(['name'=>$name])->one(); if(!empty($query)){ return $query->id;
<?php } ?> <!-- 10. Education URLs --> <?php if($model->ideducation != NULL AND $model->idcity == NULL){?> <?php $educationName = Education::educationName($model->ideducation);?> <p> Browse the latest <b><?php echo $educationName; ?> jobs today</b> in Pakistan where freshers or experienced with <?php echo $educationName; ?> qualification can find suitable jobs. If you are jobless and try to find highly paid job, you are at right place to find <?php echo $educationName; ?> jobs <?php echo date('Y'); ?> in Lahore, Karachi, Peshawar, Rawalpindi, Islamabad and all other cities of Pakistan. You will find Government and Multinational Departments jobs for intermediate jobs <?php echo date('Y'); ?>
{ $_obInitialLevel_ = ob_get_level(); ob_start(); ob_implicit_flush(false); extract($_params_, EXTR_OVERWRITE); try { require $_file_; return ob_get_clean(); } catch (\Exception $e) { while (ob_get_level() > $_obInitialLevel_) { if (!@ob_end_clean()) { ob_clean(); }
$this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); } array_pop($this->_viewFiles); $this->context = $oldContext;
* @throws InvalidCallException if the view cannot be resolved. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]] * on how to specify this parameter.
* @param array $params the parameters (name-value pairs) that should be made available in the view. * @return string the rendering result. * @throws InvalidArgumentException if the view file does not exist. */ public function renderPartial($view, $params = []) { return $this->getView()->render($view, $params, $this); } /** * Renders a view file. * @param string $file the view file to be rendered. This can be either a file path or a [path alias](guide:concept-aliases). * @param array $params the parameters (name-value pairs) that should be made available in the view.
echo $this->render('../site/pagenotfound'); exit; } // echo "<pre>"; print_r($SearchJobs); exit; $breadcrumbs = Jobs::makeBreadcrumbs($SearchJobs, $search); $paragraph = $this->renderPartial('_dynamicContent',['model' => $SearchJobs]); return $this->render('listing',[ 'models' => $models, 'search' => $SearchJobs, 'form_search' => $search, 'pagination' => $pagination,
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require __DIR__ . '/../../common/config/main.php', require __DIR__ . '/../../common/config/main-local.php', require __DIR__ . '/../config/main.php', require __DIR__ . '/../config/main-local.php' ); (new yii\web\Application($config))->run();
$_GET = [ 'SearchJobs' => unserialize('O:21:"common\\models\\JobsUrl":21:{s:27:"' . "\0" . 'yii\\base\\Component' . "\0" . '_events";a:0:{}s:35:"' . "\0" . 'yii\\base\\Component' . "\0" . '_eventWildcards";a:0:{}s:30:"' . "\0" . 'yii\\base\\Component' . "\0" . '_behaviors";a:0:{}s:23:"' . "\0" . 'yii\\base\\Model' . "\0" . '_errors";N;s:27:"' . "\0" . 'yii\\base\\Model' . "\0" . '_validators";N;s:25:"' . "\0" . 'yii\\base\\Model' . "\0" . '_scenario";s:7:"default";s:36:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_attributes";a:21:{s:2:"id";i:117416;s:9:"idcompany";N;s:8:"idagency";N;s:10:"idprovince";N;s:6:"idcity";N;s:10:"idcategory";N;s:11:"idnewspaper";N;s:6:"idjobs";N;s:6:"idpost";N;s:11:"ideducation";i:95;s:6:"idtype";N;s:8:"idsector";N;s:3:"url";s:34:"jobs/faisalabad,-punjab,-pakistan/";s:5:"title";s:65:"Faisalabad, Punjab, Pakistan Jobs in Pakistan year | Pakkijobs.pk";s:11:"description";s:188:"Find Latest Faisalabad, Punjab, Pakistan Jobs year from Jang Nawai-Waqt newspapers in Lahore, Karachi, Islamabad, Peshawar. Browse Daily Faisalabad, Punjab, Pakistan vacancies in Pakistan.";s:2:"h1";s:50:"Faisalabad, Punjab, Pakistan Jobs in Pakistan year";s:9:"paragraph";N;s:8:"og_image";N;s:4:"page";N;s:7:"created";s:19:"2022-11-22 05:41:59";s:7:"updated";N;}s:39:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_oldAttributes";a:21:{s:2:"id";i:117416;s:9:"idcompany";N;s:8:"idagency";N;s:10:"idprovince";N;s:6:"idcity";N;s:10:"idcategory";N;s:11:"idnewspaper";N;s:6:"idjobs";N;s:6:"idpost";N;s:11:"ideducation";i:95;s:6:"idtype";N;s:8:"idsector";N;s:3:"url";s:34:"jobs/faisalabad,-punjab,-pakistan/";s:5:"title";s:65:"Faisalabad, Punjab, Pakistan Jobs in Pakistan year | Pakkijobs.pk";s:11:"description";s:188:"Find Latest Faisalabad, Punjab, Pakistan Jobs year from Jang Nawai-Waqt newspapers in Lahore, Karachi, Islamabad, Peshawar. Browse Daily Faisalabad, Punjab, Pakistan vacancies in Pakistan.";s:2:"h1";s:50:"Faisalabad, Punjab, Pakistan Jobs in Pakistan year";s:9:"paragraph";N;s:8:"og_image";N;s:4:"page";N;s:7:"created";s:19:"2022-11-22 05:41:59";s:7:"updated";N;}s:33:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_related";a:0:{}s:47:"' . "\0" . 'yii\\db\\BaseActiveRecord' . "\0" . '_relationsDependencies";a:0:{}s:5:"idjob";N;s:11:"companyName";N;s:10:"agencyName";N;s:12:"provinceName";N;s:8:"cityName";N;s:12:"categoryName";N;s:13:"newspaperName";N;s:8:"typeName";N;s:13:"educationName";N;s:10:"sectorName";N;s:8:"postName";N;}'), 'Search' => [ 'idcompany' => null, 'idagency' => null, 'idprovince' => null, 'idcity' => null, 'idcategory' => null, 'idjobs' => null, 'idtype' => null, 'idnewspaper' => null, 'idpost' => null, 'ideducation' => 95, ], 'page' => 1, ];