我在WordPress中使用Visual Composer,我想制作一个自定义的Post Grid。但是,后网格提供的默认元素还不够。我想显示该帖子的作者,其评论数,其类别以及其标签。我对Visual Composer并不是很熟悉,但是我需要正确的方向才能获取此数据?我能做什么?我已经搜索了他们的文件,但是没有运气。如果我需要四处移动php代码,我想知道我四处移动是正确的事情。有任何想法吗?如果您需要更多信息,请询问:D
在此先感谢您的帮助。
嗨我试图发送邮件,但当我尝试使用Mail :: Send但我创建的变量有信息将发送到哪个邮件将不会进入Mail :: Send部分.我不知道为什么它总是告诉我未定义的变量,当它定义在右上方时.这是代码
$result = DB::table('perfil')->where('usuario', $object['usuario'])->first();
$info = array('confirmation_code' => $result->codigoVerificacion, 'nombre' => $result->nombre);
$mail = $result->correoVerificado;
$nombre = $result->nombre.' '.$result->primerPaterno.' '.$result->segundoApellido;
Mail::send('emails.registro_nuevo_usuario', $info, function($message)
{
$message->from('jfeuchter@gmail.com', 'Jurgen Feuchter');
$message->to($mail, $nombre)
->subject('¡Bienvenido a la mejor red social para pedir y dar rides!');
});
Run Code Online (Sandbox Code Playgroud)
如果您需要更多代码,请向我索取:P
'未定义变量:邮件'在\ app\controllers\registroController.php中:103
我使用CakePHP的插件进行调用以获取某些订单。我可以调用具有特定字段的所有订单,但我想知道如何调用才能获取具有特定名称或 order_number 的订单?这是调用Shopify的来源。它已经通过身份验证和一切:
public function call($method, $path, $params=array())
{
if (!$this->isAuthorized())
return;
$password = $this->is_private_app ? $this->secret : md5($this->secret.$this->ShopifyAuth->token);
$baseurl = "https://{$this->api_key}:$password@{$this->ShopifyAuth->shop_domain}/";
$url = $baseurl.ltrim($path, '/');
$query = in_array($method, array('GET','DELETE')) ? $params : array();
$payload = in_array($method, array('POST','PUT')) ? stripslashes(json_encode($params)) : array();
$request_headers = in_array($method, array('POST','PUT')) ? array("Content-Type: application/json; charset=utf-8", 'Expect:') : array();
$request_headers[] = 'X-Shopify-Access-Token: ' . $this->ShopifyAuth->token;
list($response_body, $response_headers) = $this->Curl->HttpRequest($method, $url, $query, $payload, $request_headers);
$this->last_response_headers = $response_headers;
$response = json_decode($response_body, true);
if (isset($response['errors']) …Run Code Online (Sandbox Code Playgroud) php ×2
api ×1
blogs ×1
cakephp ×1
laravel ×1
mail-sender ×1
restful-url ×1
shopify ×1
wordpress ×1